Пример #1
0
 private IReflectField[] CreateFields(string[] fieldNames, Type[] fieldTypes)
 {
     IReflectField[] fields = new IReflectField[fieldNames.Length + 1];
     for (int i = 0; i < fieldNames.Length; ++i)
     {
         fields[i] = new Db4objects.Db4o.Tests.Common.Reflect.Custom.CustomField(_repository
                                                                                 , i, fieldNames[i], fieldTypes[i]);
     }
     fields[fields.Length - 1] = new CustomUidField(_repository);
     return(fields);
 }
Пример #2
0
		private IReflectField[] CreateFields(string[] fieldNames, Type[] fieldTypes)
		{
			IReflectField[] fields = new IReflectField[fieldNames.Length + 1];
			for (int i = 0; i < fieldNames.Length; ++i)
			{
				fields[i] = new Db4objects.Db4o.Tests.Common.Reflect.Custom.CustomField(_repository
					, i, fieldNames[i], fieldTypes[i]);
			}
			fields[fields.Length - 1] = new CustomUidField(_repository);
			return fields;
		}
Пример #3
0
 private IReflectField[] CreateFields(string[] fieldNames, Type[] fieldTypes)
 {
     var fields = new IReflectField[fieldNames.Length + 1];
     for (var i = 0; i < fieldNames.Length; ++i)
     {
         fields[i] = new CustomField(_repository
             , i, fieldNames[i], fieldTypes[i]);
     }
     fields[fields.Length - 1] = new CustomUidField(_repository);
     return fields;
 }