StringExtensions.As Method

Include Protected Members
Include Inherited Members

Converts a string to a strongly typed value of the specified data type.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member As<TValue>(String) Converts a string to a strongly typed value of the specified data type.
Public methodStatic member As<TValue>(String, TValue) Converts a string to the specified data type and specifies a default value.

Top

Remarks

The As method is called by all other methods whose names begin with As in the StringExtensions class. This method creates a converter object of the specified type and then tries to convert the input string value to the specified type.

See Also

Reference

StringExtensions Class

System.Web.WebPages Namespace