41 instantiations of PropertyValue
System.Private.CoreLib (41)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (41)
105
if (type == typeof(bool)) return value => new
PropertyValue
((bool)value!);
106
if (type == typeof(byte)) return value => new
PropertyValue
((byte)value!);
107
if (type == typeof(sbyte)) return value => new
PropertyValue
((sbyte)value!);
108
if (type == typeof(char)) return value => new
PropertyValue
((char)value!);
109
if (type == typeof(short)) return value => new
PropertyValue
((short)value!);
110
if (type == typeof(ushort)) return value => new
PropertyValue
((ushort)value!);
111
if (type == typeof(int)) return value => new
PropertyValue
((int)value!);
112
if (type == typeof(uint)) return value => new
PropertyValue
((uint)value!);
113
if (type == typeof(long)) return value => new
PropertyValue
((long)value!);
114
if (type == typeof(ulong)) return value => new
PropertyValue
((ulong)value!);
115
if (type == typeof(IntPtr)) return value => new
PropertyValue
((IntPtr)value!);
116
if (type == typeof(UIntPtr)) return value => new
PropertyValue
((UIntPtr)value!);
117
if (type == typeof(float)) return value => new
PropertyValue
((float)value!);
118
if (type == typeof(double)) return value => new
PropertyValue
((double)value!);
119
if (type == typeof(Guid)) return value => new
PropertyValue
((Guid)value!);
120
if (type == typeof(DateTime)) return value => new
PropertyValue
((DateTime)value!);
121
if (type == typeof(DateTimeOffset)) return value => new
PropertyValue
((DateTimeOffset)value!);
122
if (type == typeof(TimeSpan)) return value => new
PropertyValue
((TimeSpan)value!);
123
if (type == typeof(decimal)) return value => new
PropertyValue
((decimal)value!);
125
return value => new
PropertyValue
(value);
223
return container => new
PropertyValue
(getter((TContainer)container.ReferenceValue!));
230
if (type == typeof(bool)) { var f = GetGetMethod<bool>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
231
if (type == typeof(byte)) { var f = GetGetMethod<byte>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
232
if (type == typeof(sbyte)) { var f = GetGetMethod<sbyte>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
233
if (type == typeof(char)) { var f = GetGetMethod<char>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
234
if (type == typeof(short)) { var f = GetGetMethod<short>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
235
if (type == typeof(ushort)) { var f = GetGetMethod<ushort>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
236
if (type == typeof(int)) { var f = GetGetMethod<int>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
237
if (type == typeof(uint)) { var f = GetGetMethod<uint>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
238
if (type == typeof(long)) { var f = GetGetMethod<long>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
239
if (type == typeof(ulong)) { var f = GetGetMethod<ulong>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
240
if (type == typeof(IntPtr)) { var f = GetGetMethod<IntPtr>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
241
if (type == typeof(UIntPtr)) { var f = GetGetMethod<UIntPtr>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
242
if (type == typeof(float)) { var f = GetGetMethod<float>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
243
if (type == typeof(double)) { var f = GetGetMethod<double>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
244
if (type == typeof(Guid)) { var f = GetGetMethod<Guid>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
245
if (type == typeof(DateTime)) { var f = GetGetMethod<DateTime>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
246
if (type == typeof(DateTimeOffset)) { var f = GetGetMethod<DateTimeOffset>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
247
if (type == typeof(TimeSpan)) { var f = GetGetMethod<TimeSpan>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
248
if (type == typeof(decimal)) { var f = GetGetMethod<decimal>(property); return container => new
PropertyValue
(f((TContainer)container.ReferenceValue!)); }
250
return container => new
PropertyValue
(property.GetValue(container.ReferenceValue));
36 references to PropertyValue
System.Private.CoreLib (36)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\ArrayTypeInfo.cs (1)
26
public override void WriteData(
PropertyValue
value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EnumerableTypeInfo.cs (1)
31
public override void WriteData(
PropertyValue
value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\InvokeTypeInfo.cs (1)
58
public override void WriteData(
PropertyValue
value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyAnalysis.cs (3)
16
internal readonly Func<
PropertyValue
,
PropertyValue
> getter;
28
this.getter =
PropertyValue
.GetPropertyGetter(propertyInfo);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\PropertyValue.cs (12)
103
public static Func<object?,
PropertyValue
> GetFactory(Type type)
158
public static Func<
PropertyValue
,
PropertyValue
> GetPropertyGetter(PropertyInfo property)
172
private static Func<
PropertyValue
,
PropertyValue
> GetBoxedValueTypePropertyGetter(PropertyInfo property)
179
Func<object?,
PropertyValue
> factory = GetFactory(type);
193
private static Func<
PropertyValue
,
PropertyValue
> GetReferenceTypePropertyGetter(PropertyInfo property)
201
public abstract Func<
PropertyValue
,
PropertyValue
> GetPropertyGetter(PropertyInfo property);
216
public override Func<
PropertyValue
,
PropertyValue
> GetPropertyGetter(PropertyInfo property)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\SimpleTypeInfos.cs (10)
30
public override void WriteData(
PropertyValue
value)
76
public override void WriteData(
PropertyValue
value)
137
public override void WriteData(
PropertyValue
value)
182
public override void WriteData(
PropertyValue
value)
217
public override void WriteData(
PropertyValue
value)
248
public override void WriteData(
PropertyValue
value)
276
public override void WriteData(
PropertyValue
value)
301
public override void WriteData(
PropertyValue
value)
335
public override void WriteData(
PropertyValue
value)
340
PropertyValue
val = valueInfo.PropertyValueFactory(hasValue
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingDataCollector.cs (3)
37
public static void AddScalar(
PropertyValue
value)
39
PropertyValue
.Scalar scalar = value.ScalarValue;
92
public static void AddArray(
PropertyValue
value, int elementSize)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (5)
22
private readonly Func<object?,
PropertyValue
> propertyValueFactory;
30
this.propertyValueFactory =
PropertyValue
.GetFactory(dataType);
52
this.propertyValueFactory =
PropertyValue
.GetFactory(dataType);
88
internal Func<object?,
PropertyValue
> PropertyValueFactory => this.propertyValueFactory;
125
public abstract void WriteData(
PropertyValue
value);