ToEncodedString Method
Definition
- Assemblies
- Cuemon.Data.dll
ToEncodedString(IDecorator<IDataReader>)
Converts the enclosed IDataReader of the decorator to an equivalent string representation.
public static string ToEncodedString(this IDecorator<IDataReader> decorator)
Parameters
decoratorIDecorator<IDataReader>The IDecorator<T> to extend.
Returns
- string
A string value that is equivalent to the enclosed IDataReader of the
decorator.
Remarks
IDataReader must return only one field (for instance, an XML field), otherwise an ArgumentException is thrown.
Exceptions
- ArgumentNullException
decoratoris null or its underlying value is null.- ArgumentOutOfRangeException
decoratorunderlying value is not valid.