GetField() public static method

public static GetField ( Type type, FieldInfo field ) : FieldInfo
type System.Type
field FieldInfo
return FieldInfo
Exemplo n.º 1
0
 internal override int ImportTo(ModuleBuilder other)
 {
     if (typeBuilder.IsGenericTypeDefinition)
     {
         return(other.ImportMember(TypeBuilder.GetField(typeBuilder, this)));
     }
     else if (other == typeBuilder.ModuleBuilder)
     {
         return(pseudoToken);
     }
     else
     {
         return(other.ImportMethodOrField(typeBuilder, name, fieldSig));
     }
 }