本文整理汇总了C#中Db4objects.Db4o.Foundation.Collection4.AddAll方法的典型用法代码示例。如果您正苦于以下问题:C# Collection4.AddAll方法的具体用法?C# Collection4.AddAll怎么用?C# Collection4.AddAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects.Db4o.Foundation.Collection4
的用法示例。
在下文中一共展示了Collection4.AddAll方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Concat
// Simple
// Collection
// Complex
// General
//regression
protected virtual Type[] Concat(Type[] x, Type[] y)
{
Collection4 c = new Collection4(x);
c.AddAll(y);
return (Type[])c.ToArray(new Type[c.Size()]);
}
示例2: InitializeAspects
internal virtual void InitializeAspects()
{
BitTrue(Const4.CheckedChanges);
var aspects = new Collection4();
if (null != _aspects)
{
aspects.AddAll(_aspects);
}
var customTypeHandler = Container().Handlers.ConfiguredTypeHandler(ClassReflector
());
var dirty = IsDirty();
if (InstallTranslator(aspects, customTypeHandler))
{
dirty = true;
}
if (Container().DetectSchemaChanges())
{
if (GenerateCommitTimestamps())
{
if (!HasCommitTimestampField())
{
aspects.Add(Container().CommitTimestampIndex());
dirty = true;
}
}
if (GenerateUUIDs())
{
if (!HasUUIDField())
{
aspects.Add(Container().UUIDIndex());
dirty = true;
}
}
}
if (InstallCustomTypehandler(aspects, customTypeHandler))
{
dirty = true;
}
var defaultFieldBehaviour = _translator == null && customTypeHandler == null;
if (Container().DetectSchemaChanges())
{
if (defaultFieldBehaviour)
{
if (CollectReflectFields(aspects))
{
dirty = true;
}
}
if (dirty)
{
_container.SetDirtyInSystemTransaction(this);
}
}
if (dirty || !defaultFieldBehaviour)
{
_aspects = ToClassAspectArray(aspects);
}
var dp = _container._handlers.DiagnosticProcessor();
if (dp.Enabled())
{
dp.CheckClassHasFields(this);
}
if (_aspects == null)
{
_aspects = new FieldMetadata[0];
}
InitializeConstructor(customTypeHandler);
if (StateDead())
{
return;
}
_container.Callbacks().ClassOnRegistered(this);
SetStateOK();
}
示例3: NewCollection
private Collection4 NewCollection(string[] expected)
{
Collection4 c = new Collection4();
c.AddAll(expected);
return c;
}
示例4: NewIterable
private IEnumerable NewIterable(int[] values)
{
var collection = new Collection4();
collection.AddAll(IntArrays4.ToObjectArray(values));
return collection;
}