2 types derived from ValueType
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
22
public abstract partial class Enum :
ValueType
, IComparable, ISpanFormattable, IConvertible
System\Enum.NativeAot.cs (1)
21
public abstract partial class Enum :
ValueType
, IComparable, IFormattable, IConvertible
40 references to ValueType
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
817
else if (type == typeof(
ValueType
))
983
if (baseType != null && baseType != typeof(object) && baseType != typeof(
ValueType
))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
930
else if (type == typeof(Enum) || type == typeof(
ValueType
))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
80
s_typeOfValueType = typeof(
ValueType
);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (1)
1293
for (Type baseType = typedMessageType; baseType != null && baseType != typeof(object) && baseType != typeof(
ValueType
); baseType = baseType.BaseType())
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
51
/// Indicates that the type is <see cref="
ValueType
"/>.
Microsoft.CSharp (3)
Microsoft\CSharp\RuntimeBinder\ComInterop\TypeUtils.cs (1)
260
if (source.IsValueType && (destination == typeof(object) || destination == typeof(System.
ValueType
)))
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantArray.cs (1)
103
TypeBuilder type = UnsafeMethods.DynamicModule.DefineType("VariantArray" + size, attrs, typeof(
ValueType
));
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
151
new PredefinedTypeInfo(PredefinedType.PT_VALUE, typeof(
ValueType
), "System.ValueType"),
Microsoft.Maui.Essentials (2)
Gyroscope\Gyroscope.shared.cs (1)
175
/// <inheritdoc cref="
ValueType
.GetHashCode"/>
OrientationSensor\OrientationSensor.shared.cs (1)
180
/// <inheritdoc cref="
ValueType
.GetHashCode"/>
Microsoft.ML.Core (1)
CommandLine\CmdParser.cs (1)
692
if (!arg.IsCollection || value == null || !arg.ItemValueType.IsSubclassOf(typeof(System.
ValueType
)) ||
mscorlib (1)
parent\ref\mscorlib.cs (1)
1231
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ValueType
))]
netstandard (1)
netstandard.cs (1)
2242
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ValueType
))]
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
41
if (attributedPart is
ValueType
)
System.Linq.Expressions (3)
System\Dynamic\Utils\TypeUtils.cs (2)
254
if (AreReferenceAssignable(targetType, typeof(
ValueType
)))
860
source.IsValueType && (destination == typeof(object) || destination == typeof(
ValueType
)) || source.IsEnum && destination == typeof(Enum);
System\Linq\Expressions\Compiler\ILGen.cs (1)
572
typeFrom == typeof(System.
ValueType
) ||
System.Private.CoreLib (10)
Internal\Runtime\MethodTable.Runtime.cs (2)
40
return IsPrimitive && (IsGenericTypeDefinition || NonArrayBaseType != MethodTable.Of<
ValueType
>());
50
&& NonArrayBaseType == MethodTable.Of<
ValueType
>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TupleElementNamesAttribute.cs (2)
23
/// construction, which <see cref="
ValueType
"/> occurrences are
28
/// instantiation of <see cref="
ValueType
"/> that contains
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
140
protected virtual bool IsValueTypeImpl() => IsSubclassOf(typeof(
ValueType
));
System\Reflection\Runtime\General\Assignability.cs (2)
130
if (toTypeInfo == typeof(
ValueType
))
337
return t.IsClass && t != typeof(object) && t != typeof(
ValueType
) && t != typeof(Enum);
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (1)
843
Type valueType = typeof(
ValueType
);
System\ValueType.cs (2)
162
var
fieldValue = (
ValueType
)RuntimeExports.RhBox(fieldType, ref fieldData);
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\DataContract.cs (2)
664
"ValueType" => typeof(
ValueType
),
754
else if (type == typeof(Enum) || type == typeof(
ValueType
))
System\Runtime\Serialization\Globals.cs (1)
29
internal static Type TypeOfValueType => field ??= typeof(
ValueType
);
System.Private.TypeLoader (1)
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
101
return (DefType)ResolveRuntimeTypeHandle(typeof(
ValueType
).TypeHandle);
System.Private.Xml (2)
System\Xml\Serialization\Types.cs (2)
848
else if (type == typeof(
ValueType
))
1000
if (baseType != null && baseType != typeof(object) && baseType != typeof(
ValueType
))
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
44
typeof(nint), typeof(nuint), typeof(TypedReference), typeof(
ValueType
) };
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
916
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ValueType
))]
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\ObjectManager.cs (1)
161
if (holder.ObjectValue != null && holder.ObjectValue is
ValueType
)
System.ServiceModel.Primitives (1)
System\ServiceModel\Description\TypeLoader.cs (1)
1325
for (Type baseType = typedMessageType; baseType != null && baseType != typeof(object) && baseType != typeof(
ValueType
); baseType = baseType.BaseType())
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
564
currentType == typeof(
ValueType
))
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1651
!typeof(
ValueType
).IsAssignableFrom(FormattedValueType))