181 references to ParameterAttributes
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
94
_methodBuilder.DefineParameter(arg.Index,
ParameterAttributes
.None, arg.Name);
Microsoft.AspNetCore.Http.Extensions (3)
RequestDelegateFactory.cs (2)
714
if (parameter.Attributes.HasFlag(
ParameterAttributes
.In))
718
else if (parameter.Attributes.HasFlag(
ParameterAttributes
.Out))
src\Shared\PropertyAsParameterInfo.cs (1)
27
AttrsImpl = (
ParameterAttributes
)propertyInfo.Attributes;
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\Shared\PropertyAsParameterInfo.cs (1)
27
AttrsImpl = (
ParameterAttributes
)propertyInfo.Attributes;
Microsoft.AspNetCore.OpenApi (1)
src\Shared\PropertyAsParameterInfo.cs (1)
27
AttrsImpl = (
ParameterAttributes
)propertyInfo.Attributes;
Microsoft.CodeAnalysis (8)
MetadataReader\PEModule.cs (1)
3507
out
ParameterAttributes
flags)
PEWriter\MetadataWriter.cs (7)
1200
public static
ParameterAttributes
GetParameterAttributes(IParameterDefinition parDef)
1202
ParameterAttributes
result = 0;
1205
result |=
ParameterAttributes
.In;
1210
result |=
ParameterAttributes
.Out;
1215
result |=
ParameterAttributes
.Optional;
1220
result |=
ParameterAttributes
.HasDefault;
1225
result |=
ParameterAttributes
.HasFieldMarshal;
Microsoft.CodeAnalysis.CSharp (14)
Symbols\Metadata\PE\PEParameterSymbol.cs (14)
157
private readonly
ParameterAttributes
_flags;
289
ParameterAttributes
inOutFlags = _flags & (
ParameterAttributes
.Out |
ParameterAttributes
.In);
291
if (inOutFlags ==
ParameterAttributes
.Out)
499
internal
ParameterAttributes
Flags
544
return (_flags &
ParameterAttributes
.HasDefault) != 0;
560
if ((_flags &
ParameterAttributes
.HasDefault) != 0)
619
return (_flags &
ParameterAttributes
.Optional) != 0;
973
get { return (_flags &
ParameterAttributes
.In) != 0; }
978
get { return (_flags &
ParameterAttributes
.Out) != 0; }
985
return (_flags &
ParameterAttributes
.HasFieldMarshal) != 0;
1002
if ((_flags &
ParameterAttributes
.HasFieldMarshal) == 0)
1016
if ((_flags &
ParameterAttributes
.HasFieldMarshal) == 0)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (35)
Attributes\AttributeTests_WellKnownAttributes.cs (35)
520
Assert.Equal(
ParameterAttributes
.HasDefault, theParameter.Flags); // native compiler has None instead
1094
Assert.Equal(
ParameterAttributes
.Optional |
ParameterAttributes
.HasDefault, param.Attributes);
1156
ParameterAttributes
expectedFlags;
1166
expectedFlags =
ParameterAttributes
.Optional |
ParameterAttributes
.HasDefault;
2142
ParameterAttributes
expectedFlags;
2154
expectedFlags =
ParameterAttributes
.In;
2161
expectedFlags =
ParameterAttributes
.Out;
2167
expectedFlags =
ParameterAttributes
.In |
ParameterAttributes
.Out;
2171
expectedFlags =
ParameterAttributes
.In |
ParameterAttributes
.HasDefault |
ParameterAttributes
.Optional;
2175
expectedFlags =
ParameterAttributes
.Out |
ParameterAttributes
.HasDefault |
ParameterAttributes
.Optional;
2179
expectedFlags =
ParameterAttributes
.In |
ParameterAttributes
.Out |
ParameterAttributes
.HasDefault |
ParameterAttributes
.Optional;
2321
ParameterAttributes
expectedFlags;
2335
expectedFlags =
ParameterAttributes
.In;
2341
expectedFlags =
ParameterAttributes
.Out;
2345
expectedFlags =
ParameterAttributes
.In |
ParameterAttributes
.Out;
2376
ParameterAttributes
expectedFlags;
2386
expectedFlags =
ParameterAttributes
.In;
2390
expectedFlags =
ParameterAttributes
.Out;
2394
expectedFlags =
ParameterAttributes
.In |
ParameterAttributes
.Out;
2431
Assert.Equal(
ParameterAttributes
.In |
ParameterAttributes
.Out, metadataReader.GetParameter(ps[0]).Attributes);
2432
Assert.Equal(
ParameterAttributes
.In |
ParameterAttributes
.Out, metadataReader.GetParameter(ps[1]).Attributes);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\Engine\DkmClrModuleInstance.cs (1)
396
int IMetadataImport.GetParamProps(Token tk, out Token pmd, out uint pulSequence, char[] szName, uint cchName, out uint pchName, out
ParameterAttributes
pdwAttr, out uint pdwCPlusTypeFlag, out MetadataReader.UnusedIntPtr ppValue, out uint pcchValue)
Debugger\MemberInfo\ParameterInfoImpl.cs (1)
25
public override System.Reflection.
ParameterAttributes
Attributes
Microsoft.CodeAnalysis.Test.Utilities (8)
Metadata\MetadataValidation.cs (2)
118
Assert.NotEqual(0, (int)(paramRow.Attributes &
ParameterAttributes
.HasFieldMarshal));
130
Assert.Equal(0, (int)(paramRow.Attributes &
ParameterAttributes
.HasFieldMarshal));
Platform\Custom\MetadataSignatureHelper.cs (6)
158
public static bool AppendParameterAttributes(StringBuilder sb,
ParameterAttributes
attributes, bool all = true)
162
if ((attributes &
ParameterAttributes
.Optional) != 0)
164
if ((attributes &
ParameterAttributes
.In) != 0)
166
if ((attributes &
ParameterAttributes
.Out) != 0)
171
if ((attributes &
ParameterAttributes
.HasFieldMarshal) != 0)
173
if ((attributes &
ParameterAttributes
.HasDefault) != 0)
Microsoft.CodeAnalysis.VisualBasic (19)
Symbols\Metadata\PE\PEParameterSymbol.vb (14)
28
Private ReadOnly _flags As
ParameterAttributes
84
flags As
ParameterAttributes
,
105
flags As
ParameterAttributes
,
217
flags As
ParameterAttributes
,
300
Friend ReadOnly Property ParamFlags As
ParameterAttributes
320
Return (_flags And
ParameterAttributes
.HasDefault) <> 0
334
If (_flags And
ParameterAttributes
.HasDefault) <> 0 Then
354
Return (_flags And
ParameterAttributes
.Optional) <> 0
441
Return (_flags And
ParameterAttributes
.Optional) <> 0
486
Return (_flags And
ParameterAttributes
.Out) <> 0
492
Return (_flags And
ParameterAttributes
.In) <> 0
516
Return (_flags And
ParameterAttributes
.HasFieldMarshal) <> 0
529
If (_flags And
ParameterAttributes
.HasFieldMarshal) = 0 Then
540
If (_flags And
ParameterAttributes
.HasFieldMarshal) = 0 Then
Symbols\Metadata\PE\PEPropertySymbol.vb (5)
479
Dim flags As
ParameterAttributes
= 0
497
If (flags And
ParameterAttributes
.Optional) <> (setParameter.ParamFlags And
ParameterAttributes
.Optional) Then
498
flags = flags And Not
ParameterAttributes
.Optional
505
flags = flags And Not
ParameterAttributes
.Optional
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (3)
1493
if ((parameter.Attributes &
ParameterAttributes
.Optional) != 0 && !parameter.ParameterType.IsByRef)
1500
if ((parameter.Attributes &
ParameterAttributes
.HasFieldMarshal) != 0)
1528
else if ((parameter.Attributes &
ParameterAttributes
.HasDefault) != 0 && !parameter.ParameterType.IsByRef)
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
1431
dynamicMethod.DefineParameter(1,
ParameterAttributes
.None, "value");
Microsoft.ML.Core (4)
ComponentModel\LoadableClassAttribute.cs (4)
199
if ((parm.Attributes & (
ParameterAttributes
.Out |
ParameterAttributes
.Retval)) != 0)
219
if ((parm.Attributes & (
ParameterAttributes
.Out |
ParameterAttributes
.Retval)) != 0)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
482
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
ParameterAttributes
))]
netstandard (1)
netstandard.cs (1)
1450
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
ParameterAttributes
))]
System.Diagnostics.StackTrace (1)
System\Diagnostics\SymbolStore\ISymbolWriter.cs (1)
108
ParameterAttributes
attributes,
System.Linq.Expressions (2)
System\Dynamic\Utils\TypeExtensions.cs (2)
91
return (pi.Attributes &
ParameterAttributes
.Out) ==
ParameterAttributes
.Out;
System.Private.CoreLib (35)
LibraryImports.g.cs (2)
1040
internal static partial int SetParamInfo(global::System.Runtime.CompilerServices.QCallModule module, int tkMethod, int iSequence, global::System.Reflection.
ParameterAttributes
iParamAttributes, string strParamName)
1052
static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, int __tkMethod_native, int __iSequence_native, global::System.Reflection.
ParameterAttributes
__iParamAttributes_native, ushort* __strParamName_native);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorBuilder.cs (2)
20
public ParameterBuilder DefineParameter(int iSequence,
ParameterAttributes
attributes, string strParamName)
23
protected abstract ParameterBuilder DefineParameterCore(int iSequence,
ParameterAttributes
attributes, string strParamName);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
385
public ParameterBuilder? DefineParameter(int position,
ParameterAttributes
attributes, string? parameterName)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (2)
34
public ParameterBuilder DefineParameter(int position,
ParameterAttributes
attributes, string? strParamName)
41
protected abstract ParameterBuilder DefineParameterCore(int position,
ParameterAttributes
attributes, string? strParamName);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ParameterBuilder.cs (6)
14
public bool IsIn => ((
ParameterAttributes
)Attributes &
ParameterAttributes
.In) != 0;
15
public bool IsOptional => ((
ParameterAttributes
)Attributes &
ParameterAttributes
.Optional) != 0;
16
public bool IsOut => ((
ParameterAttributes
)Attributes &
ParameterAttributes
.Out) != 0;
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (7)
19
public virtual
ParameterAttributes
Attributes => AttrsImpl;
25
public bool IsIn => (Attributes &
ParameterAttributes
.In) != 0;
26
public bool IsLcid => (Attributes &
ParameterAttributes
.Lcid) != 0;
27
public bool IsOptional => (Attributes &
ParameterAttributes
.Optional) != 0;
28
public bool IsOut => (Attributes &
ParameterAttributes
.Out) != 0;
29
public bool IsRetval => (Attributes &
ParameterAttributes
.Retval) != 0;
110
protected
ParameterAttributes
AttrsImpl;
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (2)
125
protected override ParameterBuilder DefineParameterCore(int iSequence,
ParameterAttributes
attributes, string? strParamName)
132
attributes &= ~
ParameterAttributes
.ReservedMask;
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (2)
641
protected override ParameterBuilder DefineParameterCore(int position,
ParameterAttributes
attributes, string? strParamName)
649
attributes &= ~
ParameterAttributes
.ReservedMask;
src\System\Reflection\Emit\RuntimeParameterBuilder.cs (2)
32
ParameterAttributes
attributes,
61
private readonly
ParameterAttributes
_attributes;
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
117
ParameterAttributes
iParamAttributes, string? strParamName);
src\System\Reflection\MdImport.cs (2)
481
public void GetParamDefProps(int parameterToken, out int sequence, out
ParameterAttributes
attributes)
484
attributes = (
ParameterAttributes
)attributesRaw;
src\System\Reflection\RuntimeParameterInfo.cs (6)
67
scope.GetParamDefProps(tkParamDef, out int position, out
ParameterAttributes
attr);
94
returnParameter ??= new RuntimeParameterInfo(sig, default, 0, -1, (
ParameterAttributes
)0, member);
105
args[i] = new RuntimeParameterInfo(sig, default, 0, i, (
ParameterAttributes
)0, member);
142
internal void SetAttributes(
ParameterAttributes
attributes)
181
int position,
ParameterAttributes
attributes, MemberInfo member)
207
AttrsImpl =
ParameterAttributes
.None;
System.Private.Xml (3)
System\Xml\Serialization\CodeGenerator.cs (1)
102
_methodBuilder!.DefineParameter(arg.Index,
ParameterAttributes
.None, arg.Name);
System\Xml\Xsl\IlGen\XmlILModule.cs (2)
159
methBldr.DefineParameter(1,
ParameterAttributes
.None, RuntimeName);
164
methBldr.DefineParameter(i + (isRaw ? 1 : 2),
ParameterAttributes
.None, paramNames[i]);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingParameterInfo.cs (1)
18
public override
ParameterAttributes
Attributes
System.Reflection.Emit (14)
System\Reflection\Emit\ConstructorBuilderImpl.cs (1)
28
protected override ParameterBuilder DefineParameterCore(int iSequence,
ParameterAttributes
attributes, string strParamName) =>
System\Reflection\Emit\MethodBuilderImpl.cs (4)
130
protected override ParameterBuilder DefineParameterCore(int position,
ParameterAttributes
attributes, string? strParamName)
141
attributes &= ~
ParameterAttributes
.ReservedMask;
256
return new ParameterInfoWrapper(new ParameterBuilderImpl(this, 0,
ParameterAttributes
.Retval, null), _returnType);
299
parameters[i] = new ParameterInfoWrapper(new ParameterBuilderImpl(this, i,
ParameterAttributes
.None, null), _parameterTypes[i]);
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
973
attributes: (
ParameterAttributes
)parameter.Attributes,
System\Reflection\Emit\ParameterBuilderImpl.cs (8)
13
internal
ParameterAttributes
_attributes;
19
public ParameterBuilderImpl(MethodBuilderImpl methodBuilder, int sequence,
ParameterAttributes
attributes, string? paramName)
36
_attributes |=
ParameterAttributes
.HasDefault;
44
_attributes |=
ParameterAttributes
.In;
47
_attributes |=
ParameterAttributes
.Out;
50
_attributes |=
ParameterAttributes
.Optional;
53
_attributes |=
ParameterAttributes
.HasFieldMarshal;
78
public override
ParameterAttributes
Attributes => _pb._attributes;
System.Reflection.Metadata (5)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (2)
795
/// <param name="attributes"><see cref="
ParameterAttributes
"/></param>
799
public ParameterHandle AddParameter(
ParameterAttributes
attributes, StringHandle name, int sequenceNumber)
System\Reflection\Metadata\Internal\Tables.cs (2)
533
internal
ParameterAttributes
GetFlags(ParameterHandle handle)
536
return (
ParameterAttributes
)this.Block.PeekUInt16(rowOffset + _FlagsOffset);
System\Reflection\Metadata\TypeSystem\Parameter.cs (1)
24
public
ParameterAttributes
Attributes
System.Reflection.MetadataLoadContext (15)
System\Reflection\TypeLoading\Parameters\Ecma\EcmaFatMethodParameter.cs (1)
36
protected sealed override
ParameterAttributes
ComputeAttributes() => Parameter.Attributes;
System\Reflection\TypeLoading\Parameters\RoFatMethodParameter.cs (10)
25
public sealed override
ParameterAttributes
Attributes => (_lazyParameterAttributes == ParameterAttributesSentinel) ? (_lazyParameterAttributes = ComputeAttributes()) : _lazyParameterAttributes;
26
protected abstract
ParameterAttributes
ComputeAttributes();
27
private const
ParameterAttributes
ParameterAttributesSentinel = (
ParameterAttributes
)(-1);
28
private volatile
ParameterAttributes
_lazyParameterAttributes = ParameterAttributesSentinel;
37
ParameterAttributes
attributes = Attributes;
38
if (0 != (attributes &
ParameterAttributes
.In))
45
if (0 != (attributes &
ParameterAttributes
.Out))
52
if (0 != (attributes &
ParameterAttributes
.Optional))
59
if (0 != (attributes &
ParameterAttributes
.HasFieldMarshal))
System\Reflection\TypeLoading\Parameters\RoParameter.cs (1)
31
public abstract override
ParameterAttributes
Attributes { get; }
System\Reflection\TypeLoading\Parameters\RoPropertyIndexParameter.cs (1)
29
public sealed override
ParameterAttributes
Attributes => _backingParameter.Attributes;
System\Reflection\TypeLoading\Parameters\RoThinMethodParameter.cs (2)
23
public sealed override
ParameterAttributes
Attributes =>
ParameterAttributes
.None;
System.Reflection.Primitives (1)
artifacts\obj\System.Reflection.Primitives\Debug\net11.0\System.Reflection.Primitives.Forwards.cs (1)
16
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
ParameterAttributes
))]
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net11.0\System.Runtime.Forwards.cs (1)
494
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.
ParameterAttributes
))]
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
148
cb.DefineParameter(1,
ParameterAttributes
.None, "assemblyName");