本文整理汇总了C#中IReflectClass类的典型用法代码示例。如果您正苦于以下问题:C# IReflectClass类的具体用法?C# IReflectClass怎么用?C# IReflectClass使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IReflectClass类属于命名空间,在下文中一共展示了IReflectClass类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:DeleteContextImpl.cs
示例2: ThrowUnsupportedAdd
private void ThrowUnsupportedAdd(IReflectClass runtimeAncestor)
{
throw new InvalidOperationException("Unsupported class hierarchy change. Class "
+ runtimeAncestor.GetName() + " was added to hierarchy of " +
_runtimeClass.GetName
());
}
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:HierarchyAnalyzer.cs
示例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;
}
开发者ID:erdincay,项目名称:db4o,代码行数:25,代码来源:QConClass.cs
示例4: PrimitiveTypeMetadata
public PrimitiveTypeMetadata(ObjectContainerBase container, ITypeHandler4 handler
, int id, IReflectClass classReflector) : base(container, classReflector)
{
_aspects = FieldMetadata.EmptyArray;
_typeHandler = handler;
_id = id;
}
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:PrimitiveTypeMetadata.cs
示例5: AssertKnownClasses
private void AssertKnownClasses(IReflectClass[] knownClasses)
{
for (int i = 0; i < knownClasses.Length; i++)
{
Assert.AreNotEqual(FullyQualifiedName(typeof(StoredClassFilterTestCase.SimpleClass
)), knownClasses[i].GetName());
}
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:8,代码来源:StoredClassFilterTestCase.cs
示例6: SelfField
public SelfField(string name, IReflectClass type, SelfClass selfclass, SelfReflectionRegistry
registry)
{
_name = name;
_type = type;
_selfclass = selfclass;
_registry = registry;
}
开发者ID:erdincay,项目名称:db4o,代码行数:8,代码来源:SelfField.cs
示例7: GetComponentType
public virtual IReflectClass GetComponentType(IReflectClass a_class)
{
while (a_class.IsArray())
{
a_class = a_class.GetComponentType();
}
return a_class;
}
开发者ID:masroore,项目名称:db4o,代码行数:8,代码来源:AbstractReflectArray.cs
示例8: AssertKnownClasses
private void AssertKnownClasses(IReflectClass[] knownClasses)
{
for (var i = 0; i < knownClasses.Length; i++)
{
Assert.AreNotEqual(FullyQualifiedName(typeof (SimpleClass
)), knownClasses[i].GetName());
}
}
开发者ID:masroore,项目名称:db4o,代码行数:8,代码来源:StoredClassFilterTestCase.cs
示例9: CanHandleClass
public virtual bool CanHandleClass(IReflectClass claxx)
{
if (_mapHandler.CanHandleClass(claxx))
{
return true;
}
return ReplicationPlatform.IsBuiltinCollectionClass(_reflector, claxx);
}
开发者ID:Galigator,项目名称:db4o,代码行数:8,代码来源:CollectionHandlerImpl.cs
示例10: ClassReflector
public virtual IReflectClass ClassReflector(IReflector reflector)
{
if (_classReflector == null)
{
_classReflector = ((IBuiltinTypeHandler)GetHandler()).ClassReflector();
}
return _classReflector;
}
开发者ID:erdincay,项目名称:db4o,代码行数:8,代码来源:VirtualFieldMetadata.cs
示例11: IsNDimensional
public virtual bool IsNDimensional(IReflectClass a_class)
{
if (a_class is GenericArrayClass)
{
return false;
}
return _delegate.IsNDimensional(a_class.GetDelegate());
}
开发者ID:superyfwy,项目名称:db4o,代码行数:8,代码来源:GenericArrayReflector.cs
示例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;
}
开发者ID:superyfwy,项目名称:db4o,代码行数:8,代码来源:MapHandler.cs
示例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;
}
开发者ID:gamlerhart,项目名称:db4opad,代码行数:9,代码来源:MetaDataReader.cs
示例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();
}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:MapHandler.cs
示例15: TraverseSuperclass
private void TraverseSuperclass(object @object, IReflectClass claxx)
{
IReflectClass superclass = claxx.GetSuperclass();
if (superclass == null)
{
return;
}
TraverseAllFields(@object, superclass);
}
开发者ID:erdincay,项目名称:db4o,代码行数:9,代码来源:GenericTraverser.cs
示例16: CallConstructor
public virtual bool CallConstructor(IReflectClass clazz)
{
TernaryBool specialized = CallConstructorSpecialized(clazz);
if (!specialized.IsUnspecified())
{
return specialized.DefiniteYes();
}
return _config.CallConstructors().DefiniteYes();
}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:9,代码来源:ReflectorConfigurationImpl.cs
示例17: NewInstance
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);
}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:GenericArrayReflector.cs
示例18: GenericClass
public GenericClass(GenericReflector reflector, IReflectClass delegateClass, string
name, Db4objects.Db4o.Reflect.Generic.GenericClass superclass)
{
_reflector = reflector;
_delegate = delegateClass;
_name = name;
_superclass = superclass;
_hashCode = _name.GetHashCode();
}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:GenericClass.cs
示例19: GetComponentType
public virtual IReflectClass GetComponentType(IReflectClass claxx)
{
claxx = claxx.GetDelegate();
if (claxx is GenericClass)
{
return claxx;
}
return _delegate.GetComponentType(claxx);
}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:GenericArrayReflector.cs
示例20: NameOf
private static TypeName NameOf(IReflectClass typeToFind)
{
var name = TypeNameParser.ParseString(typeToFind.GetName());
if (typeToFind.IsArray() && !name.ArrayOf.HasValue)
{
return TypeName.CreateArrayOf(name, 1);
}
return name;
}
开发者ID:gamlerhart,项目名称:db4opad,代码行数:9,代码来源:MetaDataReader.cs
注:本文中的IReflectClass类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论