41 references to MethodSemanticsAttributes
ILAssembler (14)
Actions\GrammarActions.Members.PropertiesEvents.cs (9)
91=> AddPropertyAccessor(body, MethodSemanticsAttributes.Setter, value); 96=> AddPropertyAccessor(body, MethodSemanticsAttributes.Getter, value); 101=> AddPropertyAccessor(body, MethodSemanticsAttributes.Other, value); 105MethodSemanticsAttributes semantics, 204=> AddEventAccessor(body, MethodSemanticsAttributes.Adder, value); 207=> AddEventAccessor(body, MethodSemanticsAttributes.Remover, value); 210=> AddEventAccessor(body, MethodSemanticsAttributes.Raiser, value); 213=> AddEventAccessor(body, MethodSemanticsAttributes.Other, value); 217MethodSemanticsAttributes semantics,
EntityRegistry.cs (2)
2150public List<(MethodSemanticsAttributes Semantic, EntityBase Method)> Accessors { get; } = new(); 2161public List<(MethodSemanticsAttributes Semantic, EntityBase Method)> Accessors { get; } = new();
PseudoCustomAttributes.MarshalAs.cs (3)
55foreach ((MethodSemanticsAttributes semantic, EntityRegistry.EntityBase accessor) in property.Accessors) 63if (semantic == MethodSemanticsAttributes.Getter) 67else if (semantic == MethodSemanticsAttributes.Setter)
Microsoft.CodeAnalysis (9)
PEWriter\MetadataWriter.cs (9)
2692MethodSemanticsAttributes semantics; 2695semantics = MethodSemanticsAttributes.Setter; 2699semantics = MethodSemanticsAttributes.Getter; 2703semantics = MethodSemanticsAttributes.Other; 2724MethodSemanticsAttributes semantics; 2727semantics = MethodSemanticsAttributes.Adder; 2731semantics = MethodSemanticsAttributes.Remover; 2735semantics = MethodSemanticsAttributes.Raiser; 2739semantics = MethodSemanticsAttributes.Other;
System.Reflection.Emit (8)
System\Reflection\Emit\ModuleBuilderImpl.cs (8)
242AddMethodSemantics(eventHandle, MethodSemanticsAttributes.Adder, aMb._handle); 247AddMethodSemantics(eventHandle, MethodSemanticsAttributes.Raiser, rMb._handle); 252AddMethodSemantics(eventHandle, MethodSemanticsAttributes.Remover, remMb._handle); 259AddMethodSemantics(eventHandle, MethodSemanticsAttributes.Other, method._handle); 280AddMethodSemantics(propertyHandle, MethodSemanticsAttributes.Getter, gMb._handle); 285AddMethodSemantics(propertyHandle, MethodSemanticsAttributes.Setter, sMb._handle); 292AddMethodSemantics(propertyHandle, MethodSemanticsAttributes.Other, method._handle); 890private void AddMethodSemantics(EntityHandle parentHandle, MethodSemanticsAttributes attribute, MethodDefinitionHandle methodHandle) =>
System.Reflection.Metadata (10)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (1)
693public void AddMethodSemantics(EntityHandle association, MethodSemanticsAttributes semantics, MethodDefinitionHandle methodDefinition)
System\Reflection\Metadata\Internal\Tables.cs (2)
1513internal MethodSemanticsAttributes GetSemantics(int rowId) 1516return (MethodSemanticsAttributes)this.Block.PeekUInt16(rowOffset + _SemanticsFlagOffset);
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (4)
78case MethodSemanticsAttributes.Adder: 82case MethodSemanticsAttributes.Remover: 86case MethodSemanticsAttributes.Raiser: 90case MethodSemanticsAttributes.Other:
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (3)
89case MethodSemanticsAttributes.Getter: 93case MethodSemanticsAttributes.Setter: 97case MethodSemanticsAttributes.Other: