Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# Get type with 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 #type #namespace
ADD COMMENT
Topic
Name
2+2 =