find out whether class is from startup assembly
Published: 2. November 2011 | Updated: 2. November 2011License: Microsoft Public License (MS-PL)
Categories: Framework » Reflection
Tags: C# Reflection
Import namespace
using System.Reflection;
Code
public static bool IsFromStartupAssembly(Type type) { return Assembly.GetEntryAssembly() == type.Assembly; }
| Send us feedback about this snippet » |





