}
public
-#if NET_4_0
virtual
-#endif
bool IsEnum {
get {
return IsSubclassOf (typeof (Enum));
}
public
-#if NET_4_0
virtual
-#endif
bool IsSerializable {
get {
if ((Attributes & TypeAttributes.Serializable) != 0)
public override bool Equals (object o)
{
-#if NET_4_0
return Equals (o as Type);
-#else
- if (o == this)
- return true;
-
- Type me = UnderlyingSystemType;
- if (me == null)
- return false;
- return me.EqualsInternal (o as Type);
-#endif
}
-#if NET_4_0
public virtual bool Equals (Type o)
{
if ((object)o == (object)this)
return true;
return me.EqualsInternal (o);
}
-#else
- public bool Equals (Type o)
- {
-
- if (o == this)
- return true;
- if (o == null)
- return false;
- Type me = UnderlyingSystemType;
- if (me == null)
- return false;
- return me.EqualsInternal (o.UnderlyingSystemType);
- }
-#endif
-#if NET_4_0
[MonoTODO ("Implement it properly once 4.0 impl details are known.")]
public static bool operator == (Type left, Type right)
{
{
get { throw CreateNIE (); }
}
-#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern bool EqualsInternal (Type type);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
internal extern static TypeCode GetTypeCodeInternal (Type type);
-#if NET_4_0
protected virtual
-#endif
TypeCode GetTypeCodeImpl () {
Type type = this;
if (type is MonoType)
public virtual StructLayoutAttribute StructLayoutAttribute {
get {
-#if NET_4_0
throw new NotSupportedException ();
-#else
- return GetStructLayoutAttribute ();
-#endif
}
}
}
-#if NET_4_0
public virtual bool IsEquivalentTo (Type other)
{
return this == other;
}
-#endif
/*
* Return whenever this object is an instance of a user defined subclass