Beispiel #1
0
        private void WriteTypeAssemblyQualifiedName(TypeSignature type)
        {
            type.AcceptVisitor(this);

            if (type.Scope.GetAssembly() != type.Module.Assembly)
            {
                _writer.Write(", ");
                WriteAssemblySpec(type.Scope.GetAssembly());
            }
        }
Beispiel #2
0
        private void WriteTypeAssemblyQualifiedName(TypeSignature type)
        {
            type.AcceptVisitor(this);

            if (type.Scope != type.Module)
            {
                _writer.Write(", ");
                _writer.Write(type.Scope.GetAssembly().FullName);
            }
        }
Beispiel #3
0
        private void WriteTypeAssemblyQualifiedName(TypeSignature type)
        {
            type.AcceptVisitor(this);

            var assembly = type.Scope.GetAssembly();

            if (assembly != type.Module.Assembly)
            {
                if (assembly.IsCorLib && _omitCorLib)
                {
                    return;
                }

                _writer.Write(", ");
                WriteAssemblySpec(assembly);
            }
        }
        /// <summary>
        /// Determines the memory layout of the provided type signature at runtime.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="is32Bit">Determines whether memory addresses are 32 bit or 64 bit wide.</param>
        /// <returns>The implied memory layout of the type.</returns>
        public static TypeMemoryLayout GetImpliedMemoryLayout(this TypeSignature type, bool is32Bit)
        {
            var layoutDetector = new TypeMemoryLayoutDetector(is32Bit);

            return(type.AcceptVisitor(layoutDetector));
        }