Esempio n. 1
0
 public FieldDescriptor.Builder FieldDependency(FieldSignature signature)
 {
     lock (fieldDependencies)
     {
         if (!fieldDependencies.TryGetValue(signature, out FieldDescriptor.Builder result))
         {
             fieldDependencies.Add(signature, result = new FieldDescriptor.Builder(signature));
         }
         return(result);
     }
 }
Esempio n. 2
0
 private static FieldDescriptor ToDescriptor(this FieldInfo field)
 {
     FieldDescriptor.Builder builder = new FieldDescriptor.Builder(field.ToSignature());
     field.Import()(builder);
     return(builder);
 }