private static AssemblyReferenceInformation FormatAssemblyInfo(this MetadataReader metadataReader, string name, StringHandle cultureHandle, BlobHandle publicKeyTokenHandle, Version version) { var culture = cultureHandle.IsNil ? "neutral" : metadataReader.GetString(cultureHandle); var publicKeyToken = publicKeyTokenHandle.IsNil ? "null" : metadataReader.FormatPublicKeyToken(publicKeyTokenHandle); return(new AssemblyReferenceInformation(name, version, culture, publicKeyToken)); }
private static string FormatAssemblyInfo(this MetadataReader metadataReader, string name, StringHandle cultureHandle, BlobHandle publicKeyTokenHandle, Version version) { var culture = cultureHandle.IsNil ? "neutral" : metadataReader.GetString(cultureHandle); var publicKeyToken = publicKeyTokenHandle.IsNil ? "null" : metadataReader.FormatPublicKeyToken(publicKeyTokenHandle); return($"{name}, Version={version}, Culture={culture}, PublicKeyToken={publicKeyToken}"); }