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