50 references to IAssemblyName
Microsoft.CodeAnalysis.UnitTests (50)
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (3)
30var fusionName = FusionAssemblyIdentity.ToAssemblyNameObject("Name, Version=" + value); 52var fusionName = FusionAssemblyIdentity.ToAssemblyNameObject("Name, Version=" + value); 96var fusionName = FusionAssemblyIdentity.ToAssemblyNameObject(displayName);
MetadataReferences\FusionAssemblyIdentityTests.cs (12)
19/// Converts <see cref="FusionAssemblyIdentity.IAssemblyName"/> to <see cref="AssemblyName"/> with possibly 25internal static AssemblyName ToAssemblyName(FusionAssemblyIdentity.IAssemblyName nameObject) 52FusionAssemblyIdentity.IAssemblyName obj; 94var obj = FusionAssemblyIdentity.ToAssemblyNameObject(name); 116var goo = FusionAssemblyIdentity.ToAssemblyNameObject("goo"); 117var goo1 = FusionAssemblyIdentity.ToAssemblyNameObject("goo, Version=1.0.0.0, Culture=neutral"); 118var goo2 = FusionAssemblyIdentity.ToAssemblyNameObject("goo, Version=2.0.0.0, Culture=neutral"); 119var goo3 = FusionAssemblyIdentity.ToAssemblyNameObject("goo, Version=3.0.0.0, Culture=neutral"); 120var goo3_enUS = FusionAssemblyIdentity.ToAssemblyNameObject("goo, Version=3.0.0.0, Culture=en-US"); 121var goo3_deDE = FusionAssemblyIdentity.ToAssemblyNameObject("goo, Version=3.0.0.0, Culture=de-DE"); 123var m = FusionAssemblyIdentity.GetBestMatch(new[] { goo2, goo1, goo3 }, null); 158var nameObject = FusionAssemblyIdentity.ToAssemblyNameObject("mscorlib");
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (35)
101int IsEqual(IAssemblyName pName, uint dwCmpFlags); 104int Clone(out IAssemblyName pName); 115private static int CreateAssemblyNameObject(out IAssemblyName ppEnum, string szAssemblyName, uint dwFlags, IntPtr pvReserved) 124private static extern int RealCreateAssemblyNameObject(out IAssemblyName ppEnum, [MarshalAs(UnmanagedType.LPWStr)] string szAssemblyName, uint dwFlags, IntPtr pvReserved); 129internal static unsafe string GetDisplayName(IAssemblyName nameObject, ASM_DISPLAYF displayFlags) 158internal static unsafe byte[] GetPropertyBytes(IAssemblyName nameObject, PropertyId propertyId) 187internal static unsafe string GetPropertyString(IAssemblyName nameObject, PropertyId propertyId) 201internal static unsafe bool IsKeyOrTokenEmpty(IAssemblyName nameObject, PropertyId propertyId) 209internal static unsafe Version GetVersion(IAssemblyName nameObject) 222internal static Version GetVersion(IAssemblyName name, out AssemblyIdentityParts parts) 254internal static byte[] GetPublicKeyToken(IAssemblyName nameObject) 270internal static byte[] GetPublicKey(IAssemblyName nameObject) 286internal static unsafe uint? GetPropertyWord(IAssemblyName nameObject, PropertyId propertyId) 304internal static string GetName(IAssemblyName nameObject) 309internal static string GetCulture(IAssemblyName nameObject) 314internal static AssemblyContentType GetContentType(IAssemblyName nameObject) 319internal static ProcessorArchitecture GetProcessorArchitecture(IAssemblyName nameObject) 324internal static unsafe AssemblyNameFlags GetFlags(IAssemblyName nameObject) 337private static unsafe void SetProperty(IAssemblyName nameObject, PropertyId propertyId, string data) 357private static unsafe void SetProperty(IAssemblyName nameObject, PropertyId propertyId, byte[] data) 372private static unsafe void SetProperty(IAssemblyName nameObject, PropertyId propertyId, ushort data) 377private static unsafe void SetProperty(IAssemblyName nameObject, PropertyId propertyId, uint data) 382private static unsafe void SetPublicKeyToken(IAssemblyName nameObject, byte[] value) 396/// Converts <see cref="IAssemblyName"/> to <see cref="AssemblyName"/> with all metadata fields filled. 403internal static AssemblyIdentity ToAssemblyIdentity(IAssemblyName nameObject) 427/// Converts <see cref="AssemblyName"/> to an equivalent <see cref="IAssemblyName"/>. 429internal static IAssemblyName ToAssemblyNameObject(AssemblyName name) 436IAssemblyName result; 497/// Creates <see cref="IAssemblyName"/> object by parsing given display name. 499internal static IAssemblyName ToAssemblyNameObject(string displayName) 508IAssemblyName result; 523internal static IAssemblyName GetBestMatch(IEnumerable<IAssemblyName> candidates, string preferredCultureOpt) 525IAssemblyName bestCandidate = null; 528foreach (var candidate in candidates)