-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from ricaun-io/develop
## [0.0.5] / 2022-01-24
- Loading branch information
Showing
12 changed files
with
666 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ricaun.Revit.UI.Example.Services | ||
{ | ||
public class ReflectionService | ||
{ | ||
public void GetFields<T>() | ||
{ | ||
var type = typeof(T); | ||
var fieldInfos = type.GetFields(BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); | ||
foreach (var fieldInfo in fieldInfos) | ||
{ | ||
Console.WriteLine($"{fieldInfo.Name} {fieldInfo.FieldType}"); | ||
} | ||
} | ||
|
||
public void GetMethods<T>() | ||
{ | ||
var type = typeof(T); | ||
var methods = type.GetMethods(BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); | ||
foreach (var method in methods) | ||
{ | ||
Console.WriteLine($"{method.Name} {method.DeclaringType}"); | ||
foreach (var parameterInfo in method.GetParameters()) | ||
{ | ||
Console.WriteLine($" {parameterInfo.Name} {parameterInfo.ParameterType}"); | ||
} | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
|
||
namespace ricaun.Revit.UI | ||
{ | ||
/// <summary> | ||
/// Console Attribute for ricaun.Console | ||
/// </summary> | ||
public class ConsoleAttribute : Attribute | ||
{ | ||
} | ||
} |
Oops, something went wrong.