1 instantiation of FieldBuilder
mscorlib (1)
system\reflection\emit\typebuilder.cs (1)
2073return new FieldBuilder(this, fieldName, type, requiredCustomModifiers, optionalCustomModifiers, attributes);
83 references to FieldBuilder
mscorlib (46)
system\reflection\emit\cominterfaces.cs (1)
111[TypeLibImportClassAttribute(typeof(System.Reflection.Emit.FieldBuilder))]
system\reflection\emit\enumbuilder.cs (4)
41public FieldBuilder DefineLiteral(String literalName, Object literalValue) 46FieldBuilder fieldBuilder = m_typeBuilder.DefineField( 74public FieldBuilder UnderlyingField { 448private FieldBuilder m_underlyingField;
system\reflection\emit\modulebuilder.cs (10)
1595public FieldBuilder DefineInitializedData(String name, byte[] data, FieldAttributes attributes) 1600Contract.Ensures(Contract.Result<FieldBuilder>() != null); 1611private FieldBuilder DefineInitializedDataNoLock(String name, byte[] data, FieldAttributes attributes) 1620Contract.Ensures(Contract.Result<FieldBuilder>() != null); 1630public FieldBuilder DefineUninitializedData(String name, int size, FieldAttributes attributes) 1632Contract.Ensures(Contract.Result<FieldBuilder>() != null); 1643private FieldBuilder DefineUninitializedDataNoLock(String name, int size, FieldAttributes attributes) 1653Contract.Ensures(Contract.Result<FieldBuilder>() != null); 2126FieldBuilder fdBuilder = null; 2130if ((fdBuilder = field as FieldBuilder) != null)
system\reflection\emit\typebuilder.cs (9)
857private FieldBuilder DefineDataHelper(String name, byte[] data, int size, FieldAttributes attributes) 861FieldBuilder fdBuilder; 2041public FieldBuilder DefineField(String fieldName, Type type, FieldAttributes attributes) 2047public FieldBuilder DefineField(String fieldName, Type type, Type[] requiredCustomModifiers, 2057private FieldBuilder DefineFieldNoLock(String fieldName, Type type, Type[] requiredCustomModifiers, 2081public FieldBuilder DefineInitializedData(String name, byte[] data, FieldAttributes attributes) 2090private FieldBuilder DefineInitializedDataNoLock(String name, byte[] data, FieldAttributes attributes) 2108public FieldBuilder DefineUninitializedData(String name, int size, FieldAttributes attributes) 2117private FieldBuilder DefineUninitializedDataNoLock(String name, int size, FieldAttributes attributes)
system\reflection\emit\xxxontypebuilderinstantiation.cs (3)
236Contract.Assert(field is FieldBuilder || field is RuntimeFieldInfo); 257FieldBuilder fb = m_field as FieldBuilder;
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (13)
42FieldBuilder fbCPC = OutputTypeBuilder.DefineField( 49FieldBuilder fbSinkHelper = OutputTypeBuilder.DefineField( 56FieldBuilder fbEventCP = OutputTypeBuilder.DefineField( 94private MethodBuilder DefineAddEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP, MethodBuilder mbInitSrcItf ) 237private MethodBuilder DefineRemoveEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP ) 463private MethodBuilder DefineInitSrcItfMethod( TypeBuilder OutputTypeBuilder, Type SourceInterface, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP, FieldBuilder fbCPC ) 553private void DefineConstructor( TypeBuilder OutputTypeBuilder, FieldBuilder fbCPC ) 584private MethodBuilder DefineFinalizeMethod( TypeBuilder OutputTypeBuilder, Type SinkHelperClass, FieldBuilder fbSinkHelper, FieldBuilder fbEventCP )
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (6)
60FieldBuilder[] afbDelegates = new FieldBuilder[aMethods.Length]; 85FieldBuilder fbCookie = OutputTypeBuilder.DefineField( 119private void DefineEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo Method, Type DelegateCls, FieldBuilder fbDelegate ) 254private void DefineConstructor( TypeBuilder OutputTypeBuilder, FieldBuilder fbCookie, FieldBuilder[] afbDelegates )
System.Core (2)
Microsoft\Scripting\Compiler\LambdaCompiler.cs (1)
303private FieldBuilder CreateStaticField(string name, Type type) {
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
45FieldBuilder fb = CreateStaticField("ConstantArray", typeof(T[]));
System.Data.Entity (20)
System\Data\Objects\Internal\EntityProxyFactory.cs (20)
619private List<FieldBuilder> _serializedFields = new List<FieldBuilder>(3); 720Action<FieldBuilder, bool> registerField = RegisterInstanceField; 773private void RegisterInstanceField(FieldBuilder field, bool serializable) 805private static void MarkAsNotSerializable(FieldBuilder field) 860public void Implement(TypeBuilder typeBuilder, Action<FieldBuilder, bool> registerField) 866FieldBuilder wrapperField = typeBuilder.DefineField(EntityProxyTypeInfo.EntityWrapperFieldName, typeof(object), FieldAttributes.Public); 890FieldBuilder interceptorField = typeBuilder.DefineField(GetInterceptorFieldName(baseProperty.Name), interceptorType, FieldAttributes.Private | FieldAttributes.Static); 967public void Implement(TypeBuilder typeBuilder, Action<FieldBuilder, bool> registerField) 1035FieldBuilder _changeTrackerField; 1036FieldBuilder _relationshipManagerField; 1037FieldBuilder _resetFKSetterFlagField; 1038FieldBuilder _compareByteArraysField; 1130public void Implement(TypeBuilder typeBuilder, Action<FieldBuilder, bool> registerField) 1401private void ImplementIEntityWithChangeTracker(TypeBuilder typeBuilder, Action<FieldBuilder, bool> registerField) 1444private void ImplementIEntityWithRelationships(TypeBuilder typeBuilder, Action<FieldBuilder, bool> registerField) 1534internal void Implement(TypeBuilder typeBuilder, Action<FieldBuilder, bool> registerField) 1609internal void Implement(TypeBuilder typeBuilder, IEnumerable<FieldBuilder> serializedFields) 1637foreach (FieldBuilder field in serializedFields) 1677foreach (FieldBuilder field in serializedFields)
System.Web.Extensions (2)
UI\WebControls\Dynamic.cs (2)
336FieldInfo[] fields = new FieldBuilder[properties.Length]; 339FieldBuilder fb = tb.DefineField("_" + dp.Name, dp.Type, FieldAttributes.Private);
System.Xml (13)
System\Xml\Serialization\XmlSerializationILGen.cs (10)
127internal FieldBuilder GenerateHashtableGetBegin(string privateName, string publicName, TypeBuilder serializerContractTypeBuilder) { 128FieldBuilder fieldBuilder = serializerContractTypeBuilder.DefineField( 168internal void GenerateHashtableGetEnd(FieldBuilder fieldBuilder) { 188internal FieldBuilder GeneratePublicMethods(string privateName, string publicName, string[] methods, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder) { 189FieldBuilder fieldBuilder = GenerateHashtableGetBegin(privateName, publicName, serializerContractTypeBuilder); 391FieldBuilder GenerateTypedSerializers(Hashtable serializers, TypeBuilder serializerContractTypeBuilder) { 393FieldBuilder fieldBuilder = GenerateHashtableGetBegin(privateName, "TypedSerializers", serializerContractTypeBuilder); 518FieldBuilder readMethodsField = GeneratePublicMethods("readMethods", "ReadMethods", readMethods, xmlMappings, serializerContractTypeBuilder); 519FieldBuilder writeMethodsField = GeneratePublicMethods("writeMethods", "WriteMethods", writerMethods, xmlMappings, serializerContractTypeBuilder); 520FieldBuilder typedSerializersField = GenerateTypedSerializers(serializers, serializerContractTypeBuilder);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
25Dictionary<string, FieldBuilder> idNameFields = new Dictionary<string, FieldBuilder>(); 974FieldBuilder fieldBuilder = this.typeBuilder.DefineField(