Esempio n. 1
0
        /// <summary>
        /// Construct the textual representation of a given metadata handle.
        /// </summary>
        /// <param name="metadataReader">Metadata reader corresponding to the handle</param>
        /// <param name="handle">Metadata handle to parse</param>
        /// <param name="namespaceQualified">Include namespace in type names</param>
        public static string FormatHandle(MetadataReader metadataReader, Handle handle, bool namespaceQualified = true, string owningTypeOverride = null)
        {
            MetadataNameFormatter formatter = new MetadataNameFormatter(metadataReader);

            return(formatter.EmitHandleName(handle, namespaceQualified, owningTypeOverride));
        }
Esempio n. 2
0
        /// <summary>
        /// Construct the textual representation of a given metadata handle.
        /// </summary>
        /// <param name="metadataReader">Metadata reader corresponding to the handle</param>
        /// <param name="handle">Metadata handle to parse</param>
        /// <param name="namespaceQualified">Include namespace in type names</param>
        public static string FormatHandle(MetadataReader metadataReader, Handle handle, bool namespaceQualified = true)
        {
            MetadataNameFormatter formatter = new MetadataNameFormatter(metadataReader);

            return(formatter.EmitHandleName(handle, namespaceQualified));
        }