-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add MethodBase.GetParameters(). - Add Type.GetConstructors(). - Add ParameterInfo class. - Add Unit Tests to cover the new classes. - Bump AssemblyNativeVersion to 100.5.0.16.
- Loading branch information
1 parent
a22fc17
commit 93df8ab
Showing
8 changed files
with
240 additions
and
1 deletion.
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
33 changes: 33 additions & 0 deletions
33
nanoFramework.CoreLibrary/System/Reflection/ParameterInfo.cs
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,33 @@ | ||
// | ||
// Copyright (c) .NET Foundation and Contributors | ||
// Portions Copyright (c) Microsoft Corporation. All rights reserved. | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
#if NANOCLR_REFLECTION | ||
|
||
namespace System.Reflection | ||
{ | ||
using Runtime.CompilerServices; | ||
using System; | ||
|
||
/// <summary> | ||
/// Discovers the attributes of a parameter and provides access to parameter metadata. | ||
/// </summary> | ||
/// <remarks>Available only in mscorlib build with support for System.Reflection.</remarks> | ||
[Serializable] | ||
public abstract class ParameterInfo | ||
{ | ||
#pragma warning disable S3459 // required to fill in in native code | ||
private readonly Type _parameterType; | ||
#pragma warning restore S3459 // Unassigned members should be removed | ||
|
||
/// <summary> | ||
/// Gets the <see cref="Type"/> of this parameter. | ||
/// </summary> | ||
/// <value>The <see cref="Type"/> object that represents the <see cref="Type"/> of this parameter.</value> | ||
public virtual Type ParameterType => _parameterType; | ||
} | ||
} | ||
|
||
#endif // NANOCLR_REFLECTION |
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