105 references to Statics
mscorlib (105)
System\Diagnostics\Eventing\TraceLogging\EnumHelper.cs (2)
22Statics.GetDeclaredStaticMethod(typeof(EnumHelper<UnderlyingType>), "Identity"); 37(Transformer<ValueType>)Statics.CreateDelegate(
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (16)
51variableCount ? Statics.InTypeVariableCountFlag : (byte)0, 70Statics.InTypeFixedCountFlag, 89Statics.InTypeCustomCountFlag, 113Statics.CheckName(name); 114var coreType = (int)dataType & Statics.InTypeMask; 118this.outType = (byte)(((int)dataType >> 8) & Statics.OutTypeMask); 144this.outType |= Statics.OutTypeChainFlag; 149this.inType |= Statics.InTypeChainFlag; 155this.inType |= Statics.InTypeChainFlag; 157if ((this.outType & Statics.OutTypeMask) == 0) 189if (0 != (this.inType & Statics.InTypeChainFlag)) 198if (0 != (this.outType & Statics.OutTypeChainFlag)) 200Statics.EncodeTags((int)this.tags, ref pos, metadata); 205if (0 != (this.inType & Statics.InTypeFixedCountFlag)) 215if (Statics.InTypeCustomCountFlag == (this.inType & Statics.InTypeCountMask) &&
System\Diagnostics\Eventing\TraceLogging\NameInfo.cs (6)
34private static int lastIdentity = Statics.TraceLoggingChannel << 24; 43this.tags = tags & Statics.EventTagsMask; 47Statics.EncodeTags((int)this.tags, ref tagsPos, null); 49this.nameMetadata = Statics.MetadataForString(name, tagsPos, 0, typeMetadataSize); 52Statics.EncodeTags((int)this.tags, ref tagsPos, this.nameMetadata); 62return this.Compare(key.Key, key.Value & Statics.EventTagsMask);
System\Diagnostics\Eventing\TraceLogging\PropertyAccessor.cs (3)
30if (!Statics.IsValueType(typeof(ContainerType))) 97this.getter = (Getter)Statics.CreateDelegate( 134this.getter = (Getter)Statics.CreateDelegate(
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (47)
53collector.AddScalar(name, Statics.Format8(format, TraceLoggingDataType.Boolean8)); 73collector.AddScalar(name, Statics.Format8(format, TraceLoggingDataType.UInt8)); 93collector.AddScalar(name, Statics.Format8(format, TraceLoggingDataType.Int8)); 113collector.AddScalar(name, Statics.Format16(format, TraceLoggingDataType.Int16)); 133collector.AddScalar(name, Statics.Format16(format, TraceLoggingDataType.UInt16)); 153collector.AddScalar(name, Statics.Format32(format, TraceLoggingDataType.Int32)); 173collector.AddScalar(name, Statics.Format32(format, TraceLoggingDataType.UInt32)); 193collector.AddScalar(name, Statics.Format64(format, TraceLoggingDataType.Int64)); 213collector.AddScalar(name, Statics.Format64(format, TraceLoggingDataType.UInt64)); 233collector.AddScalar(name, Statics.FormatPtr(format, Statics.IntPtrType)); 253collector.AddScalar(name, Statics.FormatPtr(format, Statics.UIntPtrType)); 273collector.AddScalar(name, Statics.Format64(format, TraceLoggingDataType.Double)); 293collector.AddScalar(name, Statics.Format32(format, TraceLoggingDataType.Float)); 313collector.AddScalar(name, Statics.Format16(format, TraceLoggingDataType.Char16)); 337collector.AddArray(name, Statics.Format8(format, TraceLoggingDataType.Boolean8)); 360collector.AddBinary(name, Statics.MakeDataType(TraceLoggingDataType.Binary, format)); 405collector.AddArray(name, Statics.Format8(format, TraceLoggingDataType.Int8)); 425collector.AddArray(name, Statics.Format16(format, TraceLoggingDataType.Int16)); 445collector.AddArray(name, Statics.Format16(format, TraceLoggingDataType.UInt16)); 465collector.AddArray(name, Statics.Format32(format, TraceLoggingDataType.Int32)); 485collector.AddArray(name, Statics.Format32(format, TraceLoggingDataType.UInt32)); 505collector.AddArray(name, Statics.Format64(format, TraceLoggingDataType.Int64)); 525collector.AddArray(name, Statics.Format64(format, TraceLoggingDataType.UInt64)); 545collector.AddArray(name, Statics.FormatPtr(format, Statics.IntPtrType)); 565collector.AddArray(name, Statics.FormatPtr(format, Statics.UIntPtrType)); 585collector.AddArray(name, Statics.Format16(format, TraceLoggingDataType.Char16)); 605collector.AddArray(name, Statics.Format64(format, TraceLoggingDataType.Double)); 625collector.AddArray(name, Statics.Format32(format, TraceLoggingDataType.Float)); 646collector.AddScalar(name, Statics.Format8(format, TraceLoggingDataType.UInt8)); 668collector.AddScalar(name, Statics.Format8(format, TraceLoggingDataType.Int8)); 690collector.AddScalar(name, Statics.Format16(format, TraceLoggingDataType.Int16)); 712collector.AddScalar(name, Statics.Format16(format, TraceLoggingDataType.UInt16)); 734collector.AddScalar(name, Statics.Format32(format, TraceLoggingDataType.Int32)); 756collector.AddScalar(name, Statics.Format32(format, TraceLoggingDataType.UInt32)); 778collector.AddScalar(name, Statics.Format64(format, TraceLoggingDataType.Int64)); 800collector.AddScalar(name, Statics.Format64(format, TraceLoggingDataType.UInt64)); 829collector.AddBinary(name, Statics.MakeDataType(TraceLoggingDataType.CountedUtf16String, format)); 858collector.AddScalar(name, Statics.MakeDataType(TraceLoggingDataType.Guid, format)); 878collector.AddArray(name, Statics.MakeDataType(TraceLoggingDataType.Guid, format)); 898collector.AddScalar(name, Statics.MakeDataType(TraceLoggingDataType.FileTime, format)); 917group.AddScalar("Ticks", Statics.MakeDataType(TraceLoggingDataType.FileTime, format)); 940collector.AddScalar(name, Statics.MakeDataType(TraceLoggingDataType.Int64, format)); 960collector.AddScalar(name, Statics.MakeDataType(TraceLoggingDataType.Double, format));
System\Diagnostics\Eventing\TraceLogging\Statics.cs (5)
88Statics.CheckName(name); 568var getInstanceInfo = Statics.GetDeclaredStaticMethod( 591var eventAttrib = Statics.GetCustomAttribute<EventDataAttribute>(dataType); 593Statics.GetCustomAttribute<CompilerGeneratedAttribute>(dataType) != null) 668else if (Statics.IsEnum(dataType))
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (2)
763providerMetadata = Statics.MetadataForString(this.Name, 0, traitMetaData.Count, 0); 769providerMetadata = Statics.MetadataForString(this.Name, 0, 0, 0);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventTypes.cs (9)
101this.level = Statics.DefaultLevel; 107this.level = Statics.Combine((int)typeInfo.Level, this.level); 108this.opcode = Statics.Combine((int)typeInfo.Opcode, this.opcode); 111if (Statics.ShouldOverrideFieldName(paramName)) 139this.level = Statics.DefaultLevel; 144this.level = Statics.Combine((int)typeInfo.Level, this.level); 145this.opcode = Statics.Combine((int)typeInfo.Opcode, this.opcode); 220result[i] = Statics.GetTypeInfoInstance(paramInfos[i].ParameterType, recursionCheck); 239result[i] = Statics.GetTypeInfoInstance(types[i], recursionCheck);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingMetadataCollector.cs (3)
124switch ((TraceLoggingDataType)((int)type & Statics.InTypeMask)) 175switch ((TraceLoggingDataType)((int)type & Statics.InTypeMask)) 203switch ((TraceLoggingDataType)((int)type & Statics.InTypeMask))
System\Diagnostics\Eventing\TraceLogging\TraceLoggingTypeInfo.cs (1)
62Statics.CheckName(name);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingTypeInfo_T.cs (1)
145var newInstance = Statics.CreateDefaultTypeInfo<DataType>(recursionCheck);
System\Diagnostics\Eventing\TraceLogging\TypeAnalysis.cs (10)
29var propertyInfos = Statics.GetProperties(dataType); 34if (Statics.HasCustomAttribute(propertyInfo, typeof(EventIgnoreAttribute))) 45MethodInfo getterInfo = Statics.GetGetMethod(propertyInfo); 57var propertyTypeInfo = Statics.GetTypeInfoInstance(propertyType, recursionCheck); 58var fieldAttribute = Statics.GetCustomAttribute<EventFieldAttribute>(propertyInfo); 63: Statics.ShouldOverrideFieldName(propertyInfo.Name) 78this.level = (EventLevel)Statics.Combine((int)typeInfo.Level, (int)this.level); 79this.opcode = (EventOpcode)Statics.Combine((int)typeInfo.Opcode, (int)this.opcode); 86this.level = (EventLevel)Statics.Combine((int)eventAttrib.Level, (int)this.level); 87this.opcode = (EventOpcode)Statics.Combine((int)eventAttrib.Opcode, (int)this.opcode);