Namespace: SchemaExplorer.Extensions
Assembly: SchemaExplorer (in SchemaExplorer.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public static T GetByKey<T>(
	this IReadOnlyNamedObjectCollection<IExtendedProperty> collection,
	string key
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetByKey(Of T) ( 
	collection As IReadOnlyNamedObjectCollection(Of IExtendedProperty),
	key As String
) As T

Parameters

collection
Type: IReadOnlyNamedObjectCollection<(Of <(<'IExtendedProperty>)>)>
key
Type: System..::..String

Type Parameters

T

Return Value

Type: T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyNamedObjectCollection<(Of <(<'IExtendedProperty>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also