Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# Get all class by namespace

using System.Reflection;
private Type[] GetTypesInNamespace(Assembly assembly, string nameSpace)
{
    return 
      assembly.GetTypes()
              .Where(t => String.Equals(t.Namespace, nameSpace, StringComparison.Ordinal))
              .ToArray();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #class #namespace
ADD COMMENT
Topic
Name
9+1 =