public DefineField ( string fieldName, System type, System attributes ) : System.Reflection.Emit.FieldBuilder | ||
fieldName | string | |
type | System | |
attributes | System | |
return | System.Reflection.Emit.FieldBuilder |
public System.Reflection.Emit.FieldBuilder DefineField(string fieldName, System.Type type, System.Reflection.FieldAttributes attributes) { throw null; }
public System.Reflection.Emit.FieldBuilder DefineField(string fieldName, System.Type type, System.Type[] requiredCustomModifiers, System.Type[] optionalCustomModifiers, System.Reflection.FieldAttributes attributes) { throw null; }
TypeBuilder::DefineField ( string fieldName, System type, System requiredCustomModifiers, System optionalCustomModifiers, System attributes ) : System.Reflection.Emit.FieldBuilder |
private void DefineClassVaribale(Emit.TypeBuilder typeBuilder, TypeDeclaration _type) { fieldList = new Dictionary <string, Emit.FieldBuilder>(); Emit.FieldBuilder classVariable; foreach (KeyValuePair <string, Type> para in _type.instanceVariable) { classVariable = typeBuilder.DefineField(para.Key, para.Value, FieldAttributes.Private); fieldList.Add(para.Key, classVariable); } foreach (KeyValuePair <string, Type> para in _type.classVariable) { classVariable = typeBuilder.DefineField(para.Key, para.Value, FieldAttributes.Private | FieldAttributes.Static); fieldList.Add(para.Key, classVariable); } //mthdIL.Emit(OpCodes.Ldarg_0); //mthdIL.Emit(OpCodes.Ldarg_0); //mthdIL.Emit(OpCodes.Ldfld, balanceAmtBldr); //mthdIL.Emit(OpCodes.Ldarg_2); //mthdIL.Emit(OpCodes.Add); }