getTypeName() static private method

static private getTypeName ( Type t ) : String
t System.Type
return String
 internal BtreeMultiFieldIndex(string[] fieldNames, bool unique)
 {
     this.cls        = typeof(T);
     this.unique     = unique;
     this.fieldNames = fieldNames;
     this.className  = ClassDescriptor.getTypeName(cls);
     locateFields();
     type = ClassDescriptor.FieldType.tpRaw;
 }
示例#2
0
 internal BtreeFieldIndex(String fieldName, bool unique)
 {
     this.cls       = typeof(V);
     this.unique    = unique;
     this.fieldName = fieldName;
     this.className = ClassDescriptor.getTypeName(cls);
     lookupField(fieldName);
     type = checkType(mbrType);
 }
示例#3
0
 public override void init(Type cls, ClassDescriptor.FieldType type, string[] fieldNames, bool unique, long autoincCount)
 {
     this.cls          = cls;
     this.unique       = unique;
     this.fieldName    = fieldNames[0];
     this.className    = ClassDescriptor.getTypeName(cls);
     this.autoincCount = autoincCount;
     lookupField(fieldNames[0]);
     this.type = checkType(mbrType);
 }
 public override void init(Type cls, ClassDescriptor.FieldType type, string[] fieldNames, bool unique, long autoincCount)
 {
     this.cls        = cls;
     this.unique     = unique;
     this.fieldNames = fieldNames;
     this.className  = ClassDescriptor.getTypeName(cls);
     locateFields();
     this.type = ClassDescriptor.FieldType.tpArrayOfByte;
     types     = new ClassDescriptor.FieldType[fieldNames.Length];
     for (int i = 0; i < types.Length; i++)
     {
         Type mbrType = mbr[i] is FieldInfo ? ((FieldInfo)mbr[i]).FieldType : ((PropertyInfo)mbr[i]).PropertyType;
         types[i] = checkType(mbrType);
     }
 }