2 instantiations of CustomAttributeEncodedArgument
System.Private.CoreLib (2)
System\Reflection\RuntimeCustomAttributeData.NativeAot.cs (2)
281CustomAttributeEncodedArgument argument = new CustomAttributeEncodedArgument(attributeType); 521=> new CustomAttributeEncodedArgument(type) { PrimitiveValue = value };
55 references to CustomAttributeEncodedArgument
System.Private.CoreLib (55)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (6)
267CustomAttributeEncodedArgument.ParseAttributeArguments(blob, m_ctorParams, m_namedParams, m_scope); 405CustomAttributeEncodedArgument encodedArg = m_ctorParams[i].EncodedArgument!; 526internal CustomAttributeTypedArgument(ResolutionScope scope, CustomAttributeEncodedArgument encodedArg) 678public CustomAttributeEncodedArgument[]? ArrayValue { get; set; } 780public CustomAttributeEncodedArgument? EncodedArgument { get; set; } 788public CustomAttributeEncodedArgument? EncodedArgument { get; set; }
System\Reflection\RuntimeCustomAttributeData.NativeAot.cs (49)
140internal static object? ConvertToRuntimeValue(CustomAttributeEncodedArgument encodedArg) 185private static CustomAttributeEncodedArgument ParseCustomAttributeValue( 206CustomAttributeEncodedArgument encodedArgument = parser.ParseValue(value, new CustomAttributeType(argumentType)); 260public CustomAttributeEncodedArgument ParseArgument(CustomAttributeType type) 271public CustomAttributeEncodedArgument ParseValue(Handle value, CustomAttributeType type) 281CustomAttributeEncodedArgument argument = new CustomAttributeEncodedArgument(attributeType); 342CustomAttributeEncodedArgument argument) 377private CustomAttributeEncodedArgument[] ToEncodedArguments(HandleCollection values, CustomAttributeType elementType) 379CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 388private static CustomAttributeEncodedArgument[] ToEncodedArguments(BooleanCollection values, CustomAttributeType elementType) 390CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 399private static CustomAttributeEncodedArgument[] ToEncodedArguments(CharCollection values, CustomAttributeType elementType) 401CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 410private static CustomAttributeEncodedArgument[] ToEncodedArguments(ByteCollection values, CustomAttributeType elementType) 412CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 421private static CustomAttributeEncodedArgument[] ToEncodedArguments(SByteCollection values, CustomAttributeType elementType) 423CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 432private static CustomAttributeEncodedArgument[] ToEncodedArguments(Int16Collection values, CustomAttributeType elementType) 434CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 443private static CustomAttributeEncodedArgument[] ToEncodedArguments(UInt16Collection values, CustomAttributeType elementType) 445CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 454private static CustomAttributeEncodedArgument[] ToEncodedArguments(Int32Collection values, CustomAttributeType elementType) 456CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 465private static CustomAttributeEncodedArgument[] ToEncodedArguments(UInt32Collection values, CustomAttributeType elementType) 467CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 476private static CustomAttributeEncodedArgument[] ToEncodedArguments(Int64Collection values, CustomAttributeType elementType) 478CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 487private static CustomAttributeEncodedArgument[] ToEncodedArguments(UInt64Collection values, CustomAttributeType elementType) 489CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 498private static CustomAttributeEncodedArgument[] ToEncodedArguments(SingleCollection values, CustomAttributeType elementType) 500CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 509private static CustomAttributeEncodedArgument[] ToEncodedArguments(DoubleCollection values, CustomAttributeType elementType) 511CustomAttributeEncodedArgument[] result = new CustomAttributeEncodedArgument[values.Count]; 520private static CustomAttributeEncodedArgument CreatePrimitiveArgument(CustomAttributeType type, PrimitiveValue value) 692invokeArguments[index] = CustomAttributeEncodedArgument.ParseValue( 708object? value = CustomAttributeEncodedArgument.ParseValue(reader, namedArgument.Value, type);