Converts a DictionaryEntry to a NameValueEntry.

Namespace: CodeSmith.CustomProperties
Assembly: CodeSmith.CustomProperties (in CodeSmith.CustomProperties.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public static implicit operator NameValueEntry (
	DictionaryEntry entry
)
Visual Basic
Public Shared Widening Operator CType ( 
	entry As DictionaryEntry
) As NameValueEntry

Parameters

entry
Type: System.Collections..::..DictionaryEntry
A DictionaryEntry object to convert.

Return Value

Type: NameValueEntry
A NameValueEntry object that represents the converted entry.

Exceptions

ExceptionCondition
System..::..InvalidCastException

entry contains a key that is not compatible with String.

-or-

entry contains a value that is not compatible with String.

See Also