System::Globalization::DateTimeFormatInfo::ReadOnly method

DateTimeFormatInfo::ReadOnly method

Gets read-only version of formatter.

static DateTimeFormatInfoPtr System::Globalization::DateTimeFormatInfo::ReadOnly(const DateTimeFormatInfoPtr &info)
ParameterTypeDescription
infoconst DateTimeFormatInfoPtr&Formatter to get read-only version of.

ReturnValue

if info is read-only, returns it, otherwise creates a copy of it and marks it as read-only.

See Also