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