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