C# 클래스 MyType, shared-source-cli-2.0

상속: EnumClass
파일 보기 프로젝트 열기: gbarnett/shared-source-cli-2.0 1 사용 예제들

공개 메소드들

메소드 설명
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