コード例 #1
0
ファイル: ArrayTypes.cs プロジェクト: kowalot/Bois
		public static ArrayTypes CreateBig()
		{
			var obj=
				new ArrayTypes
				{
					Prices1 = new float[] { float.MaxValue-1, 27, 17, float.MaxValue-1 },
					Prices2 = new double[] { 30, 27, 17, 70 },
					Ages = new int[] { 30, 27, 17, 70 },
					Names = new string[] { "Salar", "BOIS", "Codeplex" },
				};

			obj.Prices1 = new float[(short.MaxValue) ];
            for (int i = 0; i < short.MaxValue; i++)
            {
	            obj.Prices1[i] = i;
            }
			return obj;
		}