private void CreateArrayInObject(ItemArrays item) { var arr = new string[Data.Length]; Array.Copy(Data, 0, arr, 0, Data.Length); item._arrayInObject = arr; }
protected override object CreateArrays() { var itemArrays = new ItemArrays (); itemArrays._typedPrimitiveArray = new byte[data.Length]; Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); var dataWrapper = new byte[data.Length]; for (var i = 0; i < data.Length; i++) { dataWrapper[i] = data[i]; } itemArrays._typedWrapperArray = new byte[data.Length + 1]; Array.Copy(dataWrapper, 0, itemArrays._typedWrapperArray, 0, dataWrapper.Length ); var primitiveArray = new byte[data.Length]; Array.Copy(data, 0, primitiveArray, 0, data.Length); if (PrimitiveArrayInUntypedVariableSupported()) { itemArrays._primitiveArrayInObject = primitiveArray; } var wrapperArray = new byte[data.Length + 1]; Array.Copy(dataWrapper, 0, wrapperArray, 0, dataWrapper.Length); if (PrimitiveArrayInUntypedVariableSupported() || !Deploy.csharp) { itemArrays._wrapperArrayInObject = wrapperArray; } return(itemArrays); }
protected override object CreateArrays() { var itemArrays = new ItemArrays (); itemArrays._typedPrimitiveArray = new char[data.Length]; Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); var dataWrapper = new char[data.Length]; for (var i = 0; i < data.Length; i++) { dataWrapper[i] = data[i]; } itemArrays._typedWrapperArray = new char[data.Length + 1]; Array.Copy(dataWrapper, 0, itemArrays._typedWrapperArray, 0, dataWrapper.Length ); var primitiveArray = new char[data.Length]; Array.Copy(data, 0, primitiveArray, 0, data.Length); itemArrays._primitiveArrayInObject = primitiveArray; var wrapperArray = new char[data.Length + 1]; Array.Copy(dataWrapper, 0, wrapperArray, 0, dataWrapper.Length); itemArrays._wrapperArrayInObject = wrapperArray; return(itemArrays); }
private void CreateTypedWrapperArray(ItemArrays item) { item._typedWrapperArray = new double[data.Length + 1]; for (var i = 0; i < data.Length; i++) { item._typedWrapperArray[i] = data[i]; } }
private void CreateTypedArray(ItemArrays item) { item._typedArray = new StringBuilder[data.Length]; for (var i = 0; i < data.Length; i++) { item._typedArray[i] = data[i]; } }
private void CreateUntypedArray(ItemArrays item) { item._untypedArray = new string[Data.Length + 1]; for (var i = 0; i < Data.Length; i++) { item._untypedArray[i] = Data[i]; } }
private void CreateTypedWrapperArray(ItemArrays item) { item._typedWrapperArray = new int[data.Length + 1]; for (var i = 0; i < data.Length; i++) { item._typedWrapperArray[i] = data[i]; } }
private void CreateUntypedArray(ItemArrays item) { item._untypedArray = new string[Data.Length + 1]; for (var i = 0; i < Data.Length; i++) { item._untypedArray[i] = Data[i]; } }
private void CreatePrimitiveArrayInObject(ItemArrays item) { var arr = new double[data.Length]; Array.Copy(data, 0, arr, 0, data.Length); item._primitiveArrayInObject = arr; }
protected override object CreateArrays() { var item = new ItemArrays (); CreateTypedArray(item); CreateUntypedArray(item); CreateArrayInObject(item); return item; }
private void AssertUntypedArray(ItemArrays item ) { for (var i = 0; i < data.Length; i++) { AssertAreEqual(data[i], (StringBuilder) item._untypedArray[i]); } Assert.IsNull(item._untypedArray[item._untypedArray.Length - 1]); }
private void AssertUntypedArray(ItemArrays item ) { for (var i = 0; i < data.Length; i++) { AssertAreEqual(data[i], (StringBuilder)item._untypedArray[i]); } Assert.IsNull(item._untypedArray[item._untypedArray.Length - 1]); }
protected virtual void AssertUntypedArray(ItemArrays item) { for (var i = 0; i < Data.Length; i++) { AssertAreEqual(Data[i], (string)item._untypedArray[i]); } Assert.IsNull(item._untypedArray[item._untypedArray.Length - 1]); }
protected override object CreateArrays() { var item = new ItemArrays (); CreateTypedArray(item); CreateUntypedArray(item); CreateArrayInObject(item); return(item); }
private void CreateWrapperArrayInObject(ItemArrays item) { var arr = new int[data.Length + 1]; for (var i = 0; i < data.Length; i++) { arr[i] = data[i]; } item._wrapperArrayInObject = arr; }
protected override object CreateArrays() { var item = new ItemArrays (); CreateTypedPrimitiveArray(item); CreateTypedWrapperArray(item); // Will be removed for .NET by sharpen. CreatePrimitiveArrayInObject(item); CreateWrapperArrayInObject(item); return item; }
private void CreateArrayInObject(ItemArrays item ) { var stringBufferArray = new StringBuilder[data.Length]; for (var i = 0; i < data.Length; i++) { stringBufferArray[i] = data[i]; } item._arrayInObject = stringBufferArray; }
protected override object CreateArrays() { var item = new ItemArrays (); CreateTypedPrimitiveArray(item); CreateTypedWrapperArray(item); // Will be removed for .NET by sharpen. CreatePrimitiveArrayInObject(item); CreateWrapperArrayInObject(item); return(item); }
private void AssertPrimitiveArrayInObject(ItemArrays item) { if (Db4oHeaderVersion() == VersionServices.Header3040) { // Bug in the oldest format: It accidentally double[] arrays to Double[] arrays. AssertWrapperData((double[])item._primitiveArrayInObject); } else { AssertData((double[])item._primitiveArrayInObject); } }
private void AssertPrimitiveArrayInObject(ItemArrays item) { if (Db4oHeaderVersion() == VersionServices.Header3040) { // Bug in the oldest format: It accidentally double[] arrays to Double[] arrays. AssertWrapperData((double[]) item._primitiveArrayInObject); } else { AssertData((double[]) item._primitiveArrayInObject); } }
protected override object CreateArrays() { var item = new ItemArrays (); item._primitiveArray = primitiveArrayData; item._primitiveArrayInObject = primitiveArrayData; item._stringArray = stringArrayData; item._stringArrayInObject = stringArrayData; item._nestedArray = nestedArrayData; item._nestedArrayInObject = nestedArrayData; item._nestedNestedArray = nestedNestedArrayData; item._nestedNestedArrayInObject = nestedNestedArrayData; return item; }
protected override object CreateArrays() { var item = new ItemArrays (); item._primitiveArray = primitiveArrayData; item._primitiveArrayInObject = primitiveArrayData; item._stringArray = stringArrayData; item._stringArrayInObject = stringArrayData; item._nestedArray = nestedArrayData; item._nestedArrayInObject = nestedArrayData; item._nestedNestedArray = nestedNestedArrayData; item._nestedNestedArrayInObject = nestedNestedArrayData; return(item); }
protected override object CreateArrays() { var itemArrays = new ItemArrays (); itemArrays._dateArray = new DateTime[data.Length + 1]; Array.Copy(data, 0, itemArrays._dateArray, 0, data.Length); itemArrays._untypedObjectArray = new object[data.Length + 1]; Array.Copy(data, 0, itemArrays._untypedObjectArray, 0, data.Length); var dateArray = new DateTime[data.Length + 1]; Array.Copy(data, 0, dateArray, 0, data.Length); itemArrays._arrayInObject = dateArray; return(itemArrays); }
protected override object CreateArrays() { var item = new ItemArrays (); item._typedChildren = CastToChildItemArray(childData); item._typedChildrenInParentArray = childData; item._untypedChildren = CastToChildItemArray(childData); item._untypedChildrenInParentArray = childData; item._untypedChildrenInObject = CastToChildItemArray(childData); item._untypedChildrenInParentArrayInObject = childData; item._typedMixed = mixedData; item._untypedMixed = mixedData; item._untypedMixedInObject = mixedData; return item; }
protected override object CreateArrays() { ItemArrays itemArrays = new ItemArrays(); itemArrays._typedPrimitiveArray = new ulong[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); ulong[] ulongArray = new ulong[data.Length + 1]; System.Array.Copy(data, 0, ulongArray, 0, data.Length); itemArrays._primitiveArrayInObject = ulongArray; itemArrays._nullableTypedPrimitiveArray = new ulong?[data.Length + 1]; for (int i = 0; i < data.Length; i++) { itemArrays._nullableTypedPrimitiveArray[i] = data[i]; } return itemArrays; }
protected override object CreateArrays() { var item = new ItemArrays (); item._typedChildren = CastToChildItemArray(childData); item._typedChildrenInParentArray = childData; item._untypedChildren = CastToChildItemArray(childData); item._untypedChildrenInParentArray = childData; item._untypedChildrenInObject = CastToChildItemArray(childData); item._untypedChildrenInParentArrayInObject = childData; item._typedMixed = mixedData; item._untypedMixed = mixedData; item._untypedMixedInObject = mixedData; return(item); }
protected override void AssertArrays(IExtObjectContainer objectContainer, object obj) { ItemArrays itemArrays = (ItemArrays)obj; for (int i = 0; i < data.Length; i++) { AssertAreEqual(data[i], itemArrays._typedPrimitiveArray[i]); AssertAreEqual(data[i], ((uint[])itemArrays._primitiveArrayInObject)[i]); if (NullableSupported()) { AssertAreEqual(data[i], (uint)itemArrays._nullableTypedPrimitiveArray[i]); } } AssertAreEqual(0, itemArrays._typedPrimitiveArray[data.Length]); AssertAreEqual(0, ((uint[])itemArrays._primitiveArrayInObject)[data.Length]); }
protected override object CreateArrays() { var itemArrays = new ItemArrays(); itemArrays._typedPrimitiveArray = new sbyte[data.Length + 1]; Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); var sbyteArray = new sbyte[data.Length + 1]; Array.Copy(data, 0, sbyteArray, 0, data.Length); itemArrays._primitiveArrayInObject = sbyteArray; itemArrays._nullableTypedPrimitiveArray = new sbyte?[data.Length + 1]; for (var i = 0; i < data.Length; i++) { itemArrays._nullableTypedPrimitiveArray[i] = data[i]; } return itemArrays; }
protected override object CreateArrays() { var item = new ItemArrays (); if (MultiDimensionalArraysCantBeStored()) { return item; } item._typedIntArray = intData2D; item._untypedIntArray = intData2D; item._typedStringArray = stringData2D; item._untypedStringArray = stringData2D; item._objectArray = objectData2D; item._stringObjectArray = stringObjectData2D; item._typedByteArray = byteData2D; return item; }
protected override object CreateArrays() { ItemArrays itemArrays = new ItemArrays(); itemArrays._typedPrimitiveArray = new uint[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); uint[] uintArray = new uint[data.Length + 1]; System.Array.Copy(data, 0, uintArray, 0, data.Length); itemArrays._primitiveArrayInObject = uintArray; itemArrays._nullableTypedPrimitiveArray = new uint?[data.Length + 1]; for (int i = 0; i < data.Length; i++) { itemArrays._nullableTypedPrimitiveArray[i] = data[i]; } return(itemArrays); }
protected override object CreateArrays() { var item = new ItemArrays (); if (MultiDimensionalArraysCantBeStored()) { return(item); } item._typedIntArray = intData2D; item._untypedIntArray = intData2D; item._typedStringArray = stringData2D; item._untypedStringArray = stringData2D; item._objectArray = objectData2D; item._stringObjectArray = stringObjectData2D; item._typedByteArray = byteData2D; return(item); }
protected override object CreateArrays() { var itemArrays = new ItemArrays(); itemArrays._typedPrimitiveArray = new sbyte[data.Length + 1]; Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); var sbyteArray = new sbyte[data.Length + 1]; Array.Copy(data, 0, sbyteArray, 0, data.Length); itemArrays._primitiveArrayInObject = sbyteArray; itemArrays._nullableTypedPrimitiveArray = new sbyte?[data.Length + 1]; for (var i = 0; i < data.Length; i++) { itemArrays._nullableTypedPrimitiveArray[i] = data[i]; } return(itemArrays); }
protected override object CreateArrays() { var itemArrays = new ItemArrays(); itemArrays._nestedStructArray = new NestedStruct[data.Length]; Array.Copy(data, 0, itemArrays._nestedStructArray, 0, data.Length); itemArrays._untypedArray = new object[data.Length + 1]; Array.Copy(data, 0, itemArrays._untypedArray, 0, data.Length); var nestedStructArray = new NestedStruct[data.Length]; Array.Copy(data, 0, nestedStructArray, 0, data.Length); itemArrays._arrayInObject = nestedStructArray; itemArrays._nullableNestedStructArray = new NestedStruct?[data.Length + 1]; for (var i = 0; i < data.Length; i++) { itemArrays._nullableNestedStructArray[i] = data[i]; } return itemArrays; }
protected override object CreateArrays() { var itemArrays = new ItemArrays(); itemArrays._fooArray = new Foo[data.Length]; Array.Copy(data, 0, itemArrays._fooArray, 0, data.Length); itemArrays._untypedArray = new object[data.Length + 1]; Array.Copy(data, 0, itemArrays._untypedArray, 0, data.Length); var fooArray = new Foo[data.Length]; Array.Copy(data, 0, fooArray, 0, data.Length); itemArrays._aArrayInObject = fooArray; itemArrays._nullableFooArray = new Foo?[data.Length + 1]; for (var i = 0; i < data.Length; i++) { itemArrays._nullableFooArray[i] = data[i]; } return itemArrays; }
protected override void AssertArrays(IExtObjectContainer objectContainer, object obj) { ItemArrays itemArrays = (ItemArrays)obj; DateTime[] dateTimeArray = (DateTime[])itemArrays._arrayInObject; for (int i = 0; i < data.Length; i++) { AssertAreEqual(data[i], itemArrays._dateTimeArray[i]); AssertAreEqual(data[i], (DateTime)itemArrays._untypedObjectArray[i]); AssertAreEqual(data[i], dateTimeArray[i]); //FIXME: Cannot retrieve nullable struct array. //AssertAreEqual(data[i], (DateTime)itemArrays._nullableDateTimeArray[i]); } Assert.IsNull(itemArrays._untypedObjectArray[data.Length]); AssertAreEqual(new DateTime(0), itemArrays._dateTimeArray[data.Length]); AssertAreEqual(new DateTime(0), dateTimeArray[data.Length]); //FIXME: Cannot retrieve nullable struct array. //Assert.IsNull(itemArrays._nullableDateTimeArray[data.Length]); }
protected override object CreateArrays() { ItemArrays itemArrays = new ItemArrays(); itemArrays._nestedStructArray = new NestedStruct[data.Length]; System.Array.Copy(data, 0, itemArrays._nestedStructArray, 0, data.Length); itemArrays._untypedArray = new object[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._untypedArray, 0, data.Length); NestedStruct[] nestedStructArray = new NestedStruct[data.Length]; System.Array.Copy(data, 0, nestedStructArray, 0, data.Length); itemArrays._arrayInObject = nestedStructArray; itemArrays._nullableNestedStructArray = new NestedStruct?[data.Length + 1]; for (int i = 0; i < data.Length; i++) { itemArrays._nullableNestedStructArray[i] = data[i]; } return(itemArrays); }
protected override object CreateArrays() { ItemArrays itemArrays = new ItemArrays(); itemArrays._dateTimeArray = new DateTime[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._dateTimeArray, 0, data.Length); itemArrays._untypedObjectArray = new object[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._untypedObjectArray, 0, data.Length); DateTime[] dateTimeArray = new DateTime[data.Length + 1]; System.Array.Copy(data, 0, dateTimeArray, 0, data.Length); itemArrays._arrayInObject = dateTimeArray; itemArrays._nullableDateTimeArray = new DateTime?[data.Length + 1]; for (int i = 0; i < data.Length; i++) { itemArrays._nullableDateTimeArray[i] = data[i]; } return itemArrays; }
protected override void AssertArrays(IExtObjectContainer objectContainer, object obj) { ItemArrays itemArrays = (ItemArrays)obj; for (int i = 0; i < data.Length; i++) { AssertAreEqual(data[i], itemArrays._nestedStructArray[i]); AssertAreEqual(data[i], ((NestedStruct[])itemArrays._arrayInObject)[i]); if (NullableSupported()) { AssertAreEqual(data[i], (NestedStruct)itemArrays._nullableNestedStructArray[i]); } AssertAreEqual(data[i], (NestedStruct)itemArrays._untypedArray[i]); } if (NullableSupported()) { Assert.IsNull(itemArrays._nullableNestedStructArray[data.Length]); } Assert.IsNull(itemArrays._untypedArray[data.Length]); }
protected override void AssertArrays(IExtObjectContainer objectContainer, object obj) { ItemArrays itemArrays = (ItemArrays)obj; Foo[] fooArray = (Foo[])itemArrays._aArrayInObject; for (int i = 0; i < data.Length; i++) { AssertAreEqual(data[i], itemArrays._fooArray[i]); AssertAreEqual(data[i], (Foo)itemArrays._untypedArray[i]); AssertAreEqual(data[i], fooArray[i]); if (NullableSupported()) { AssertAreEqual(data[i], (Foo)itemArrays._nullableFooArray[i]); } } Assert.IsNull(itemArrays._untypedArray[data.Length]); if (NullableSupported()) { Assert.IsNull(itemArrays._nullableFooArray[data.Length]); } }
protected override object CreateArrays() { ItemArrays itemArrays = new ItemArrays(); itemArrays.TypedArray = new T[Data.Length + 1]; Array.Copy(Data, 0, itemArrays.TypedArray, 0, Data.Length); itemArrays.UntypedObjectArray = new object[Data.Length + 1]; Array.Copy(Data, 0, itemArrays.UntypedObjectArray, 0, Data.Length); T[] valueTypeArray = new T[Data.Length + 1]; Array.Copy(Data, 0, valueTypeArray, 0, Data.Length); itemArrays.ArrayInObject = valueTypeArray; itemArrays.NullableArray = new T?[Data.Length + 1]; for (int i = 0; i < Data.Length; i++) { itemArrays.NullableArray[i] = Data[i]; } return(itemArrays); }
protected override object CreateArrays() { ItemArrays itemArrays = new ItemArrays(); itemArrays._fooArray = new Foo[data.Length]; System.Array.Copy(data, 0, itemArrays._fooArray, 0, data.Length); itemArrays._untypedArray = new object[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._untypedArray, 0, data.Length); Foo[] fooArray = new Foo[data.Length]; System.Array.Copy(data, 0, fooArray, 0, data.Length); itemArrays._aArrayInObject = fooArray; itemArrays._nullableFooArray = new Foo?[data.Length + 1]; for (int i = 0; i < data.Length; i++) { itemArrays._nullableFooArray[i] = data[i]; } return(itemArrays); }
protected override object CreateArrays() { ItemArrays itemArrays = new ItemArrays(); itemArrays._dateTimeArray = new DateTime[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._dateTimeArray, 0, data.Length); itemArrays._untypedObjectArray = new object[data.Length + 1]; System.Array.Copy(data, 0, itemArrays._untypedObjectArray, 0, data.Length); DateTime[] dateTimeArray = new DateTime[data.Length + 1]; System.Array.Copy(data, 0, dateTimeArray, 0, data.Length); itemArrays._arrayInObject = dateTimeArray; itemArrays._nullableDateTimeArray = new DateTime?[data.Length + 1]; for (int i = 0; i < data.Length; i++) { itemArrays._nullableDateTimeArray[i] = data[i]; } return(itemArrays); }
protected override void AssertArrays(IExtObjectContainer objectContainer, object obj) { ItemArrays itemArrays = (ItemArrays)obj; T[] valueTypeArray = (T[])itemArrays.ArrayInObject; for (int i = 0; i < Data.Length; i++) { AssertAreEqual(Data[i], itemArrays.TypedArray[i]); AssertAreEqual(Data[i], (T)itemArrays.UntypedObjectArray[i]); AssertAreEqual(Data[i], valueTypeArray[i]); if (NullableSupported()) { AssertAreEqual(Data[i], (T)itemArrays.NullableArray[i]); } } Assert.IsNull(itemArrays.UntypedObjectArray[Data.Length]); AssertAreEqual(default(T), itemArrays.TypedArray[Data.Length]); AssertAreEqual(default(T), valueTypeArray[Data.Length]); if (NullableSupported()) { Assert.IsNull(itemArrays.NullableArray[Data.Length]); } }
private void CreateTypedArray(ItemArrays item) { item._typedArray = new string[Data.Length]; Array.Copy(Data, 0, item._typedArray, 0, Data.Length); }
private void CreateTypedArray(ItemArrays item) { item._typedArray = new string[Data.Length]; Array.Copy(Data, 0, item._typedArray, 0, Data.Length); }
private void CreateArrayInObject(ItemArrays item) { var arr = new string[Data.Length]; Array.Copy(Data, 0, arr, 0, Data.Length); item._arrayInObject = arr; }
private void AssertTypedPrimitiveArray(ItemArrays item) { AssertData(item._typedPrimitiveArray); }
private void AssertTypedWrapperArray(ItemArrays item) { AssertWrapperData(item._typedWrapperArray); }
private void AssertWrapperArrayInObject(ItemArrays item) { AssertWrapperData((int[]) item._wrapperArrayInObject); }
private void CreatePrimitiveArrayInObject(ItemArrays item ) { var arr = new int[data.Length]; Array.Copy(data, 0, arr, 0, data.Length); item._primitiveArrayInObject = arr; }
private void CreateTypedPrimitiveArray(ItemArrays item) { item._typedPrimitiveArray = new int[data.Length]; Array.Copy(data, 0, item._typedPrimitiveArray, 0, data.Length); }
private void CreateWrapperArrayInObject(ItemArrays item) { var arr = new int[data.Length + 1]; for (var i = 0; i < data.Length; i++) { arr[i] = data[i]; } item._wrapperArrayInObject = arr; }
protected override object CreateArrays() { var itemArrays = new ItemArrays (); itemArrays._typedPrimitiveArray = new byte[data.Length]; Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); var dataWrapper = new byte[data.Length]; for (var i = 0; i < data.Length; i++) { dataWrapper[i] = data[i]; } itemArrays._typedWrapperArray = new byte[data.Length + 1]; Array.Copy(dataWrapper, 0, itemArrays._typedWrapperArray, 0, dataWrapper.Length ); var primitiveArray = new byte[data.Length]; Array.Copy(data, 0, primitiveArray, 0, data.Length); if (PrimitiveArrayInUntypedVariableSupported()) { itemArrays._primitiveArrayInObject = primitiveArray; } var wrapperArray = new byte[data.Length + 1]; Array.Copy(dataWrapper, 0, wrapperArray, 0, dataWrapper.Length); if (PrimitiveArrayInUntypedVariableSupported() || !Deploy.csharp) { itemArrays._wrapperArrayInObject = wrapperArray; } return itemArrays; }
private void AssertArrayInObject(ItemArrays item ) { AssertData((StringBuilder[]) item._arrayInObject); }
private void AssertArrayInObject(ItemArrays item) { AssertData((string[]) item._arrayInObject); }
private void AssertPrimitiveArrayInObject(ItemArrays item ) { AssertData(CastToIntArray(item._primitiveArrayInObject)); }
protected virtual void AssertUntypedArray(ItemArrays item) { for (var i = 0; i < Data.Length; i++) { AssertAreEqual(Data[i], (string) item._untypedArray[i]); } Assert.IsNull(item._untypedArray[item._untypedArray.Length - 1]); }
protected override object CreateArrays() { var itemArrays = new ItemArrays (); itemArrays._dateArray = new DateTime[data.Length + 1]; Array.Copy(data, 0, itemArrays._dateArray, 0, data.Length); itemArrays._untypedObjectArray = new object[data.Length + 1]; Array.Copy(data, 0, itemArrays._untypedObjectArray, 0, data.Length); var dateArray = new DateTime[data.Length + 1]; Array.Copy(data, 0, dateArray, 0, data.Length); itemArrays._arrayInObject = dateArray; return itemArrays; }
private void CreateTypedArray(ItemArrays item) { item._typedArray = new StringBuilder[data.Length]; for (var i = 0; i < data.Length; i++) { item._typedArray[i] = data[i]; } }
protected override object CreateArrays() { var itemArrays = new ItemArrays (); itemArrays._typedPrimitiveArray = new short[data.Length]; Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); var dataWrapper = new short[data.Length]; for (var i = 0; i < data.Length; i++) { dataWrapper[i] = data[i]; } itemArrays._typedWrapperArray = new short[data.Length + 1]; Array.Copy(dataWrapper, 0, itemArrays._typedWrapperArray, 0, dataWrapper.Length ); var primitiveArray = new short[data.Length]; Array.Copy(data, 0, primitiveArray, 0, data.Length); itemArrays._primitiveArrayInObject = primitiveArray; var wrapperArray = new short[data.Length + 1]; Array.Copy(dataWrapper, 0, wrapperArray, 0, dataWrapper.Length); itemArrays._wrapperArrayInObject = wrapperArray; return itemArrays; }