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); } }
private static FieldDescriptor ToDescriptor(this FieldInfo field) { FieldDescriptor.Builder builder = new FieldDescriptor.Builder(field.ToSignature()); field.Import()(builder); return(builder); }