diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-05-11 21:57:26 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-05-12 02:02:05 +0300 |
commit | 920eab7c07a0e85eb6ae7e06a6d1e201d0a32565 (patch) | |
tree | a164bcf880af35b85d2c4882cb10388093603eb1 /Xamarin.PropertyEditing | |
parent | 386c68c6fbc27e9cb5136d65681471c41d31eba8 (diff) |
[Core] Add IPropertyInfo.TypeName
Diffstat (limited to 'Xamarin.PropertyEditing')
-rw-r--r-- | Xamarin.PropertyEditing/IPropertyInfo.cs | 8 | ||||
-rw-r--r-- | Xamarin.PropertyEditing/Reflection/ReflectionPropertyInfo.cs | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing/IPropertyInfo.cs b/Xamarin.PropertyEditing/IPropertyInfo.cs index f321b7e..8300c10 100644 --- a/Xamarin.PropertyEditing/IPropertyInfo.cs +++ b/Xamarin.PropertyEditing/IPropertyInfo.cs @@ -15,9 +15,17 @@ namespace Xamarin.PropertyEditing /// </remarks> string Description { get; } + /// <summary> + /// Gets the representative type for the property (Common*, primitive, etc). + /// </summary> Type Type { get; } /// <summary> + /// Gets the name of the real type of this property, not the representative type (<see cref="Type"/>). + /// </summary> + string TypeName { get; } + + /// <summary> /// A resource-name of the category the property belongs to. /// </summary> string Category { get; } diff --git a/Xamarin.PropertyEditing/Reflection/ReflectionPropertyInfo.cs b/Xamarin.PropertyEditing/Reflection/ReflectionPropertyInfo.cs index ffe572a..80ff18a 100644 --- a/Xamarin.PropertyEditing/Reflection/ReflectionPropertyInfo.cs +++ b/Xamarin.PropertyEditing/Reflection/ReflectionPropertyInfo.cs @@ -41,6 +41,8 @@ namespace Xamarin.PropertyEditing.Reflection public Type Type => this.propertyInfo.PropertyType; + public string TypeName => this.propertyInfo.Name; + public string Category => this.category.Value; public bool CanWrite => this.propertyInfo.CanWrite; |