-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for class and methods in reflection
Added tests for class and methods (factories).
- Loading branch information
1 parent
ff70da0
commit 9d61ca0
Showing
23 changed files
with
961 additions
and
21 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
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,47 @@ | ||
/// <summary> | ||
/// IMethodInfoProxy.cs | ||
/// Andrea Tino - 2017 | ||
/// </summary> | ||
|
||
namespace Rosetta.Reflection.Proxies | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Abstracts type info API. | ||
/// </summary> | ||
public interface IMethodInfoProxy | ||
{ | ||
/// <summary> | ||
/// Gets the name of the current member. | ||
/// </summary> | ||
string Name { get; } | ||
|
||
/// <summary> | ||
/// Gets the parameters of the specified method or constructor. | ||
/// </summary> | ||
IEnumerable<IParameterInfoProxy> Parameters { get; } | ||
|
||
/// <summary> | ||
/// Gets the return type of this method. | ||
/// </summary> | ||
ITypeProxy ReturnType { get; } | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether the method or constructor is visible only within its class | ||
/// and derived classes. | ||
/// </summary> | ||
bool IsFamily { get; } | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether this member is private. | ||
/// </summary> | ||
bool IsPrivate { get; } | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether this member is public. | ||
/// </summary> | ||
bool IsPublic { get; } | ||
} | ||
} |
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,25 @@ | ||
/// <summary> | ||
/// IParameterInfoProxy.cs | ||
/// Andrea Tino - 2017 | ||
/// </summary> | ||
|
||
namespace Rosetta.Reflection.Proxies | ||
{ | ||
using System; | ||
|
||
/// <summary> | ||
/// Abstracts type info API. | ||
/// </summary> | ||
public interface IParameterInfoProxy | ||
{ | ||
/// <summary> | ||
/// Gets the name of the parameter. | ||
/// </summary> | ||
string Name { get; } | ||
|
||
/// <summary> | ||
/// Gets the Type of this parameter. | ||
/// </summary> | ||
ITypeProxy ParameterType { get; } | ||
} | ||
} |
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
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
Oops, something went wrong.
9d61ca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Targets #41