29 references to Value
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapAttributes.cs (1)
73_soapDefaultValue = ((DefaultValueAttribute)attrib).Value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAttributes.cs (1)
134_xmlDefaultValue = ((DefaultValueAttribute)attrib).Value;
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ParameterDefaultValues.cs (1)
48defaultValue = defaultValueAttribute.Value;
Microsoft.AspNetCore.OpenApi (3)
Extensions\JsonNodeSchemaExtensions.cs (2)
333schema.ApplyDefaultValue(metadataDefaultValueAttribute.Value, jsonTypeInfo); 343schema.ApplyDefaultValue(defaultValueAttribute.Value, jsonTypeInfo);
Services\Schemas\OpenApiSchemaService.cs (1)
116schema.ApplyDefaultValue(defaultValueAttribute.Value, context.TypeInfo);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
840defaultValue = attr.Value;
ReachFramework (2)
Serialization\Manager\MetroSerializationManager.cs (1)
1051canSerializeValue = !object.Equals(propertyCache.DefaultValueAttr.Value,
Serialization\Manager\ReachSerializationCacheItems.cs (1)
572canSerializeValue = !object.Equals(propertyCache.DefaultValueAttr.Value,
System.ComponentModel.Composition (4)
System\ComponentModel\Composition\MetadataViewGenerator.cs (4)
157IL.LoadValue(defaultAttribute.Value); 158if ((defaultAttribute.Value != null) && (defaultAttribute.Value.GetType().IsValueType)) 160IL.Emit(OpCodes.Box, defaultAttribute.Value.GetType());
System.ComponentModel.TypeConverter (4)
System\ComponentModel\ReflectPropertyDescriptor.cs (2)
200_defaultValue = dva.Value; 301object? defaultValue = ((DefaultValueAttribute)a).Value;
System\ComponentModel\TypeConverter.cs (2)
393return attr.Value!.Equals(GetValue(component)); 404SetValue(component, attr.Value);
System.Composition.Hosting (1)
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
83return (TValue)defaultValue.Value;
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationProperty.cs (1)
294defaultValue = defaultValueAttribute?.Value;
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (4)
264if (Value == null) 266return other.Value == null; 269return Value.Equals(other.Value);
System.Private.Xml (2)
System\Xml\Serialization\SoapAttributes.cs (1)
75_soapDefaultValue = ((DefaultValueAttribute)attrs[i]).Value;
System\Xml\Serialization\XmlAttributes.cs (1)
130_xmlDefaultValue = ((DefaultValueAttribute)attrs[i]).Value;
System.Windows.Forms.Design (3)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
209_defaultValue = defaultAttribute.Value;
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
40return defAttr.Value;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
974return ((Size)sizeAttr.Value);
System.Xaml (1)
System\Xaml\XamlMember.cs (1)
928_reflector.DefaultValue = defaultValueAttrib.Value;