4 using System.Collections.Generic;
6 namespace SiliconStudio.Core.Reflection
13 private static readonly List<IMemberDescriptor> EmptyMembers =
new List<IMemberDescriptor>();
24 if (!IsNullable(type))
25 throw new ArgumentException(
"Type [{0}] is not a primitive");
27 Category = DescriptorCategory.Nullable;
28 UnderlyingType = Nullable.GetUnderlyingType(type);
29 UnderlyingDescriptor = Factory.Find(UnderlyingType);
36 public Type UnderlyingType {
get;
private set; }
51 return type.IsNullable();
override System.Collections.Generic.List< IMemberDescriptor > PrepareMembers()
Default implementation of a ITypeDescriptor.
Describe a member of an object.
static bool IsNullable(Type type)
Determines whether the specified type is nullable.
NullableDescriptor(ITypeDescriptorFactory factory, Type type)
Initializes a new instance of the ObjectDescriptor class.
Describes a descriptor for a nullable type Nullable{T}.
Provides access members of a type.
A factory to create an instance of a ITypeDescriptor