Converts a DictionaryEntry to a NameValueEntry.
Namespace: CodeSmith.CustomPropertiesAssembly: 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: NameValueEntryA NameValueEntry object that represents the converted entry.
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidCastException | entry contains a key that is not compatible with String. -or- entry contains a value that is not compatible with String. |