Skip to content

MemberInfoExtensions.GetNamespaceOrThrow Method ​

Definition ​

Returns the namespace the specified MemberInfo is contained in, or throws if it's in the global namespace.

c#
public static string GetNamespaceOrThrow(this MemberInfo member);

View source

Parameters ​

NameTypeDescription
memberMemberInfoThe member.

Returns ​

String

The namespace member is contained in, or throws if it's in the global namespace.