| File: System\Reflection\Runtime\AssemblyNameHelpers.cs | Web Access |
| Project: src\runtime\src\libraries\System.Reflection.MetadataLoadContext\src\System.Reflection.MetadataLoadContext.csproj (System.Reflection.MetadataLoadContext) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Reflection { internal static partial class AssemblyNameHelpers { // These helpers convert between the combined flags+contentType+processorArchitecture value and the separated parts. // Since these are only for trusted callers, they do NOT check for out of bound bits. internal static AssemblyContentType ExtractAssemblyContentType(this AssemblyNameFlags flags) { return (AssemblyContentType)((((int)flags) >> 9) & 0x7); } public static AssemblyNameFlags ExtractAssemblyNameFlags(this AssemblyNameFlags combinedFlags) { return combinedFlags & unchecked((AssemblyNameFlags)0xFFFFF10F); } } }