Class NameScopeExtensions
Extension methods for INameScope.
public static class NameScopeExtensions
- Inheritance
-
NameScopeExtensions
- Inherited Members
Methods
FindNameScope(ILogical)
public static INameScope? FindNameScope(this ILogical control)
Parameters
control
ILogical
Returns
Find<T>(INameScope, string)
Finds a named element in an INameScope.
public static T? Find<T>(this INameScope nameScope, string name) where T : class
Parameters
nameScope
INameScopeThe name scope.
name
stringThe name.
Returns
- T
The named element or null if not found.
Type Parameters
T
The element type.
Find<T>(ILogical, string)
Finds a named element in an INameScope.
public static T? Find<T>(this ILogical anchor, string name) where T : class
Parameters
Returns
- T
The named element or null if not found.
Type Parameters
T
The element type.
Get<T>(INameScope, string)
Gets a named element from an INameScope or throws if no element of the requested name was found.
public static T Get<T>(this INameScope nameScope, string name) where T : class
Parameters
nameScope
INameScopeThe name scope.
name
stringThe name.
Returns
- T
The named element.
Type Parameters
T
The element type.
Get<T>(ILogical, string)
Gets a named element from an INameScope or throws if no element of the requested name was found.
public static T Get<T>(this ILogical anchor, string name) where T : class
Parameters
Returns
- T
The named element.
Type Parameters
T
The element type.