本文整理汇总了C#中Db4objects.Db4o.Reflect.ArrayInfo.ReflectClass方法的典型用法代码示例。如果您正苦于以下问题:C# ArrayInfo.ReflectClass方法的具体用法?C# ArrayInfo.ReflectClass怎么用?C# ArrayInfo.ReflectClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects.Db4o.Reflect.ArrayInfo
的用法示例。
在下文中一共展示了ArrayInfo.ReflectClass方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ClassIDFromInfo
public virtual int ClassIDFromInfo(ObjectContainerBase container, ArrayInfo info)
{
ClassMetadata classMetadata = container.ProduceClassMetadata(info.ReflectClass());
if (classMetadata == null)
{
return 0;
}
return classMetadata.GetID();
}
示例2: ClassIDFromInfo
public override int ClassIDFromInfo(ObjectContainerBase container, ArrayInfo info
)
{
ClassMetadata classMetadata = container.ProduceClassMetadata(info.ReflectClass());
if (classMetadata == null)
{
// TODO: This one is a terrible low-frequency blunder !!!
// If YapClass-ID == 99999 then we will get IGNORE back.
// Discovered on adding the primitives
return Const4.IgnoreId;
}
return classMetadata.GetID();
}
示例3: Analyze
protected void Analyze(ObjectContainerBase container, object obj, ArrayInfo info)
{
// TODO: Move as much analysis as possible to ReflectArray#analyze()
ArrayReflector(container).Analyze(obj, info);
IReflectClass claxx = ComponentType(container, obj);
Db4objects.Db4o.Internal.ClassMetadata classMetadata = container.ProduceClassMetadata
(claxx);
bool primitive = IsPrimitive(container.Reflector(), claxx, classMetadata);
if (primitive)
{
claxx = classMetadata.ClassReflector();
}
info.Primitive(primitive);
info.ReflectClass(claxx);
AnalyzeDimensions(container, obj, info);
}
示例4: ReflectClassFromElementsEntry
private void ReflectClassFromElementsEntry(ObjectContainerBase container, ArrayInfo
info, int classID)
{
info.ReflectClass(_versionHelper.ReflectClassFromElementsEntry(container, info, classID
));
}
示例5: NewInstanceReflectClass
protected IReflectClass NewInstanceReflectClass(IReflector reflector, ArrayInfo info
)
{
if (_usePrimitiveClassReflector)
{
return PrimitiveClassReflector(reflector);
}
return info.ReflectClass();
}