C# Класс MyType, shared-source-cli-2.0

Наследование: EnumClass
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MyType ( int inputValue ) : System
ToString ( string format, IFormatProvider provider ) : string

ToString() is the formatting method called by String.Format. This is the implementation of the ToString() overload required by the IFormattable interface which takes a format and a IFormatProvider. This *not* overriding the default implementation of ToString inherited from object since that base method takes no parameters. In this method we look for the "b" format which we respect or fall through to the default Int32 format for anything we don't know about.

Описание методов

MyType() публичный Метод

public MyType ( int inputValue ) : System
inputValue int
Результат System

ToString() публичный Метод

ToString() is the formatting method called by String.Format. This is the implementation of the ToString() overload required by the IFormattable interface which takes a format and a IFormatProvider. This *not* overriding the default implementation of ToString inherited from object since that base method takes no parameters. In this method we look for the "b" format which we respect or fall through to the default Int32 format for anything we don't know about.
public ToString ( string format, IFormatProvider provider ) : string
format string
provider IFormatProvider
Результат string