113 references to Type
System.Private.Windows.Core (1)
System\Value.cs (1)
1046ThrowInvalidCast(Type, typeof(T));
System.Private.Windows.Core.Tests (105)
System\Value\StoringArrays.cs (8)
15Assert.Equal(typeof(byte[]), value.Type); 29Assert.Equal(typeof(char[]), value.Type); 44Assert.Equal(typeof(ArraySegment<byte>), value.Type); 51Assert.Equal(typeof(ArraySegment<byte>), value.Type); 58Assert.Equal(typeof(ArraySegment<byte>), value.Type); 72Assert.Equal(typeof(ArraySegment<char>), value.Type); 79Assert.Equal(typeof(ArraySegment<char>), value.Type); 86Assert.Equal(typeof(ArraySegment<char>), value.Type);
System\Value\StoringBoolean.cs (7)
25Assert.Equal(typeof(bool), value.Type); 34Assert.Equal(typeof(bool), value.Type); 48Assert.Equal(typeof(bool), value.Type); 58Assert.Equal(typeof(bool), value.Type); 126Assert.Equal(typeof(bool), value.Type); 136Assert.Equal(typeof(bool), value.Type); 154Assert.Null(value.Type);
System\Value\StoringByte.cs (7)
21Assert.Equal(typeof(byte), value.Type); 26Assert.Equal(typeof(byte), value.Type); 40Assert.Equal(typeof(byte), value.Type); 50Assert.Equal(typeof(byte), value.Type); 103Assert.Equal(typeof(byte), value.Type); 113Assert.Equal(typeof(byte), value.Type); 125Assert.Null(value.Type);
System\Value\StoringChar.cs (7)
21Assert.Equal(typeof(char), value.Type); 26Assert.Equal(typeof(char), value.Type); 40Assert.Equal(typeof(char), value.Type); 50Assert.Equal(typeof(char), value.Type); 103Assert.Equal(typeof(char), value.Type); 113Assert.Equal(typeof(char), value.Type); 125Assert.Null(value.Type);
System\Value\StoringDateTime.cs (3)
22Assert.Equal(typeof(DateTime), value.Type); 27Assert.Equal(typeof(DateTime), value.Type); 77Assert.Null(value.Type);
System\Value\StoringDateTimeOffset.cs (3)
22Assert.Equal(typeof(DateTimeOffset), value.Type); 27Assert.Equal(typeof(DateTimeOffset), value.Type); 77Assert.Null(value.Type);
System\Value\StoringDecimal.cs (3)
20Assert.Equal(typeof(decimal), value.Type); 25Assert.Equal(typeof(decimal), value.Type); 75Assert.Null(value.Type);
System\Value\StoringDouble.cs (7)
25Assert.Equal(typeof(double), value.Type); 30Assert.Equal(typeof(double), value.Type); 44Assert.Equal(typeof(double), value.Type); 54Assert.Equal(typeof(double), value.Type); 107Assert.Equal(typeof(double), value.Type); 117Assert.Equal(typeof(double), value.Type); 129Assert.Null(value.Type);
System\Value\StoringEnum.cs (2)
22Assert.Equal(typeof(DayOfWeek), value.Type); 34Assert.Equal(typeof(DayOfWeek), value.Type);
System\Value\StoringFloat.cs (7)
25Assert.Equal(typeof(float), value.Type); 30Assert.Equal(typeof(float), value.Type); 44Assert.Equal(typeof(float), value.Type); 54Assert.Equal(typeof(float), value.Type); 107Assert.Equal(typeof(float), value.Type); 117Assert.Equal(typeof(float), value.Type); 129Assert.Null(value.Type);
System\Value\StoringInt.cs (7)
22Assert.Equal(typeof(int), value.Type); 27Assert.Equal(typeof(int), value.Type); 41Assert.Equal(typeof(int), value.Type); 51Assert.Equal(typeof(int), value.Type); 103Assert.Equal(typeof(int), value.Type); 113Assert.Equal(typeof(int), value.Type); 125Assert.Null(value.Type);
System\Value\StoringLong.cs (7)
22Assert.Equal(typeof(long), value.Type); 27Assert.Equal(typeof(long), value.Type); 41Assert.Equal(typeof(long), value.Type); 51Assert.Equal(typeof(long), value.Type); 104Assert.Equal(typeof(long), value.Type); 114Assert.Equal(typeof(long), value.Type); 126Assert.Null(value.Type);
System\Value\StoringObject.cs (4)
13Assert.Equal(typeof(A), value.Type); 26Assert.Equal(typeof(B), value.Type); 38Assert.Equal(typeof(B), value.Type); 46Assert.Equal(typeof(A), value.Type);
System\Value\StoringSByte.cs (5)
22Assert.Equal(typeof(sbyte), value.Type); 27Assert.Equal(typeof(sbyte), value.Type); 41Assert.Equal(typeof(sbyte), value.Type); 51Assert.Equal(typeof(sbyte), value.Type); 101Assert.Null(value.Type);
System\Value\StoringShort.cs (7)
22Assert.Equal(typeof(short), value.Type); 27Assert.Equal(typeof(short), value.Type); 41Assert.Equal(typeof(short), value.Type); 51Assert.Equal(typeof(short), value.Type); 104Assert.Equal(typeof(short), value.Type); 114Assert.Equal(typeof(short), value.Type); 126Assert.Null(value.Type);
System\Value\StoringUInt.cs (7)
21Assert.Equal(typeof(uint), value.Type); 26Assert.Equal(typeof(uint), value.Type); 40Assert.Equal(typeof(uint), value.Type); 50Assert.Equal(typeof(uint), value.Type); 103Assert.Equal(typeof(uint), value.Type); 113Assert.Equal(typeof(uint), value.Type); 125Assert.Null(value.Type);
System\Value\StoringUlong.cs (7)
21Assert.Equal(typeof(ulong), value.Type); 26Assert.Equal(typeof(ulong), value.Type); 40Assert.Equal(typeof(ulong), value.Type); 50Assert.Equal(typeof(ulong), value.Type); 103Assert.Equal(typeof(ulong), value.Type); 113Assert.Equal(typeof(ulong), value.Type); 125Assert.Null(value.Type);
System\Value\StoringUShort.cs (7)
21Assert.Equal(typeof(ushort), value.Type); 26Assert.Equal(typeof(ushort), value.Type); 40Assert.Equal(typeof(ushort), value.Type); 50Assert.Equal(typeof(ushort), value.Type); 103Assert.Equal(typeof(ushort), value.Type); 113Assert.Equal(typeof(ushort), value.Type); 125Assert.Null(value.Type);
System.Windows.Forms (7)
System\Windows\Forms\PropertyStore.cs (7)
45return foundValue.Type == typeof(StrongBox<T>) 61return foundValue.Type is null ? null : foundValue.GetValue<T>(); 89value = foundValue.Type == typeof(StrongBox<T>) 114value = foundValue.Type is null ? null : foundValue.GetValue<T>(); 166bool isStrongBox = foundValue.Type == typeof(StrongBox<T>); 172: foundValue.Type is null ? default : foundValue.GetValue<T>() 222if (_values.TryGetValue(key, out Value foundValue) && foundValue.Type == typeof(StrongBox<T>))