Пример #1
0
        } // end constructor

        private static string _ValidateFieldInfoAndGetName(Microsoft.Diagnostics.Runtime.Interop.FieldInfo fieldInfo)
        {
            if (null == fieldInfo)
            {
                throw new ArgumentNullException("fieldInfo");
            }

            return(fieldInfo.Name);
        } // end _ValidateFieldInfoAndGetName()
Пример #2
0
        } // end _ValidateFieldInfoAndGetName()

        internal DbgFieldInfo(DbgEngDebugger debugger,
                              DbgTypeInfo owningType,
                              Microsoft.Diagnostics.Runtime.Interop.FieldInfo fieldInfo,
                              ulong modBase,
                              DbgUModeProcess process)   // TODO BUGBUG? There is no module base field in 'f'... is it not possible for a field to be of a type from some other module?
            : this(debugger,
                   owningType,
                   _ValidateFieldInfoAndGetName(fieldInfo),
                   fieldInfo.FieldOffset,
                   (fieldInfo.PointerFlag != Microsoft.Diagnostics.Runtime.Interop.PointerFlag.None) &&
                   (fieldInfo.PointerFlag != Microsoft.Diagnostics.Runtime.Interop.PointerFlag.Pointer64),
                   fieldInfo.PointerFlag.HasFlag(Microsoft.Diagnostics.Runtime.Interop.PointerFlag.Pointer64),
                   fieldInfo.IsArray,
                   //fieldInfo.IsStruct,
                   fieldInfo.IsConstant,
                   fieldInfo.IsStatic,
                   fieldInfo.Size,
                   DbgTypeInfo.GetNamedTypeInfo(debugger,
                                                modBase,
                                                fieldInfo.TypeId,
                                                process))
        {
            // nothing
        } // end constructor