public virtual bool IsNDimensional(IReflectClass a_class) { if (a_class is GenericArrayClass) { return false; } return _delegate.IsNDimensional(a_class.GetDelegate()); }
public virtual bool IsNDimensional(IReflectClass a_class) { if (a_class is GenericArrayClass) { return(false); } return(_delegate.IsNDimensional(a_class.GetDelegate())); }
public virtual object NewInstance(IReflectClass componentType, int length) { componentType = componentType.GetDelegate(); if (componentType is GenericClass) { return(new GenericArray(((GenericClass)componentType).ArrayClass(), length)); } return(_delegate.NewInstance(componentType, length)); }
public virtual IReflectClass GetComponentType(IReflectClass claxx) { claxx = claxx.GetDelegate(); if (claxx is GenericClass) { return(claxx); } return(_delegate.GetComponentType(claxx)); }
public virtual object NewInstance(IReflectClass componentType, int length) { componentType = componentType.GetDelegate(); if (componentType is GenericClass) { return new GenericArray(((GenericClass)componentType).ArrayClass(), length); } return _delegate.NewInstance(componentType, length); }
public virtual IReflectClass GetComponentType(IReflectClass claxx) { claxx = claxx.GetDelegate(); if (claxx is GenericClass) { return claxx; } return _delegate.GetComponentType(claxx); }
public static Type ToNative(IReflectClass reflectClass) { NetClass netClass = reflectClass.GetDelegate() as NetClass; if (netClass == null) { return(null); } return(netClass.GetNetType()); }
public virtual object NewInstance(IReflectClass componentType, ArrayInfo info) { componentType = componentType.GetDelegate(); if (componentType is GenericClass) { var length = info.ElementCount(); return(new GenericArray(((GenericClass)componentType).ArrayClass(), length)); } return(_delegate.NewInstance(componentType, info)); }
public virtual object NewInstance(IReflectClass componentType, ArrayInfo info) { componentType = componentType.GetDelegate(); if (componentType is GenericClass) { int length = info.ElementCount(); return new GenericArray(((GenericClass)componentType).ArrayClass(), length); } return _delegate.NewInstance(componentType, info); }
/// <summary>Determines if a candidate ReflectClass is a collection</summary> /// <param name="candidate">candidate ReflectClass</param> /// <returns>true if a candidate ReflectClass is a collection.</returns> public virtual bool IsCollection(IReflectClass candidate) { //candidate = candidate.getDelegate(); IEnumerator i = _collectionPredicates.GetEnumerator(); while (i.MoveNext()) { if (((IReflectClassPredicate)i.Current).Match(candidate)) { return(true); } } return(_delegate.IsCollection(candidate.GetDelegate())); }
private static Type GetNetType(IReflectClass clazz) { if (null == clazz) { return null; } NetClass netClass = clazz as NetClass; if (null != netClass) { return netClass.GetNetType(); } IReflectClass claxx = clazz.GetDelegate(); if (claxx == clazz) { return null; } return GetNetType(claxx); }
public virtual object NewInstance(IReflectClass componentType, int[] dimensions) { return(_delegate.NewInstance(componentType.GetDelegate(), dimensions)); }
public virtual object NewInstance(IReflectClass componentType, int[] dimensions) { return _delegate.NewInstance(componentType.GetDelegate(), dimensions); }
/// <summary>Determines if a candidate ReflectClass is a collection</summary> /// <param name="candidate">candidate ReflectClass</param> /// <returns>true if a candidate ReflectClass is a collection.</returns> public virtual bool IsCollection(IReflectClass candidate) { //candidate = candidate.getDelegate(); var i = _collectionPredicates.GetEnumerator(); while (i.MoveNext()) { if (((IReflectClassPredicate) i.Current).Match(candidate)) { return true; } } return _delegate.IsCollection(candidate.GetDelegate()); }
public static Type ToNative(IReflectClass reflectClass) { NetClass netClass = reflectClass.GetDelegate() as NetClass; if(netClass == null) { return null; } return netClass.GetNetType(); }