本文整理汇总了C#中IReflectClass类的典型用法代码示例。如果您正苦于以下问题:C# IReflectClass类的具体用法?C# IReflectClass怎么用?C# IReflectClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IReflectClass类属于命名空间,在下文中一共展示了IReflectClass类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DeleteContextImpl
public DeleteContextImpl(Db4objects.Db4o.Internal.StatefulBuffer buffer, ObjectHeader
objectHeader, IReflectClass fieldClass, Config4Field fieldConfig) : base(buffer
.Transaction(), buffer, objectHeader)
{
_fieldClass = fieldClass;
_fieldConfig = fieldConfig;
}
示例2: ThrowUnsupportedAdd
private void ThrowUnsupportedAdd(IReflectClass runtimeAncestor)
{
throw new InvalidOperationException("Unsupported class hierarchy change. Class "
+ runtimeAncestor.GetName() + " was added to hierarchy of " +
_runtimeClass.GetName
());
}
示例3: QConClass
internal QConClass(Transaction trans, QCon parent, QField field, IReflectClass claxx
) : base(trans, parent, field, null)
{
// C/S
if (claxx != null)
{
ObjectContainerBase container = trans.Container();
_classMetadata = container.ClassMetadataForReflectClass(claxx);
if (_classMetadata == null)
{
// could be an aliased class, try to resolve.
string className = claxx.GetName();
string aliasRunTimeName = container.Config().ResolveAliasStoredName(className);
if (!className.Equals(aliasRunTimeName))
{
_classMetadata = container.ClassMetadataForName(aliasRunTimeName);
}
}
if (claxx.Equals(container._handlers.IclassObject))
{
_classMetadata = (ClassMetadata)_classMetadata.TypeHandler();
}
}
_claxx = claxx;
}
示例4: PrimitiveTypeMetadata
public PrimitiveTypeMetadata(ObjectContainerBase container, ITypeHandler4 handler
, int id, IReflectClass classReflector) : base(container, classReflector)
{
_aspects = FieldMetadata.EmptyArray;
_typeHandler = handler;
_id = id;
}
示例5: AssertKnownClasses
private void AssertKnownClasses(IReflectClass[] knownClasses)
{
for (int i = 0; i < knownClasses.Length; i++)
{
Assert.AreNotEqual(FullyQualifiedName(typeof(StoredClassFilterTestCase.SimpleClass
)), knownClasses[i].GetName());
}
}
示例6: SelfField
public SelfField(string name, IReflectClass type, SelfClass selfclass, SelfReflectionRegistry
registry)
{
_name = name;
_type = type;
_selfclass = selfclass;
_registry = registry;
}
示例7: GetComponentType
public virtual IReflectClass GetComponentType(IReflectClass a_class)
{
while (a_class.IsArray())
{
a_class = a_class.GetComponentType();
}
return a_class;
}
示例8: AssertKnownClasses
private void AssertKnownClasses(IReflectClass[] knownClasses)
{
for (var i = 0; i < knownClasses.Length; i++)
{
Assert.AreNotEqual(FullyQualifiedName(typeof (SimpleClass
)), knownClasses[i].GetName());
}
}
示例9: CanHandleClass
public virtual bool CanHandleClass(IReflectClass claxx)
{
if (_mapHandler.CanHandleClass(claxx))
{
return true;
}
return ReplicationPlatform.IsBuiltinCollectionClass(_reflector, claxx);
}
示例10: ClassReflector
public virtual IReflectClass ClassReflector(IReflector reflector)
{
if (_classReflector == null)
{
_classReflector = ((IBuiltinTypeHandler)GetHandler()).ClassReflector();
}
return _classReflector;
}
示例11: IsNDimensional
public virtual bool IsNDimensional(IReflectClass a_class)
{
if (a_class is GenericArrayClass)
{
return false;
}
return _delegate.IsNDimensional(a_class.GetDelegate());
}
示例12: CloneWithCounterparts
public virtual object CloneWithCounterparts(ICollectionSource sourceProvider, object
originalMap, IReflectClass claxx, ICounterpartFinder elementCloner)
{
IDictionary original = (IDictionary)originalMap;
IDictionary result = (IDictionary)EmptyClone(sourceProvider, original, claxx);
CopyState(original, result, elementCloner);
return result;
}
示例13: CreateArrayType
private ITypeDescription CreateArrayType(TypeName fullName,
IReflectClass classInfo, Func<TypeName, Maybe<IReflectClass>> classLookup,
IDictionary<string, ITypeDescription> knownTypes)
{
var innerType = GetOrCreateType(classInfo.GetComponentType(), classLookup, knownTypes);
var type = ArrayDescription.Create(innerType, fullName.OrderOfArray);
knownTypes[fullName.FullName] = type;
return type;
}
示例14: EmptyClone
public virtual object EmptyClone(ICollectionSource sourceProvider, object original
, IReflectClass originalCollectionClass)
{
if (sourceProvider.IsProviderSpecific(original) || original is Hashtable)
{
return new Hashtable(((IDictionary)original).Count);
}
return _reflector.ForObject(original).NewInstance();
}
示例15: TraverseSuperclass
private void TraverseSuperclass(object @object, IReflectClass claxx)
{
IReflectClass superclass = claxx.GetSuperclass();
if (superclass == null)
{
return;
}
TraverseAllFields(@object, superclass);
}