Пример #1
0
            // Token: 0x0600014E RID: 334 RVA: 0x000076FC File Offset: 0x000058FC
            internal T GetEnum <T>(EventRecordParameteIndex index)
            {
                object obj = this.Get <object>(index);
                object obj2;

                if (obj is uint)
                {
                    obj2 = (uint)obj;
                }
                else
                {
                    obj2 = (int)obj;
                }
                return((T)((object)obj2));
            }
Пример #2
0
            // Token: 0x0600014D RID: 333 RVA: 0x00007674 File Offset: 0x00005874
            internal T Get <T>(EventRecordParameteIndex index)
            {
                if (index > (EventRecordParameteIndex)(this.propertiesCount - 1))
                {
                    throw new InvalidFailureItemException(string.Format("index {0} is out of range (max={1})", (int)index, this.propertiesCount));
                }
                EventProperty eventProperty = this.properties[(int)index];

                if (eventProperty == null)
                {
                    throw new InvalidFailureItemException(string.Format("property# {0} is null", index));
                }
                object value = eventProperty.Value;

                if (value == null)
                {
                    throw new InvalidFailureItemException(string.Format("property value# {0} is null", index));
                }
                return((T)((object)value));
            }
Пример #3
0
 // Token: 0x0600014F RID: 335 RVA: 0x00007739 File Offset: 0x00005939
 internal bool IsIndexValid(EventRecordParameteIndex index)
 {
     return(index <= (EventRecordParameteIndex)(this.propertiesCount - 1));
 }