사용자정의포매터1 사용자 지정 서식 공급자 구현 string.Format()을 사용자 정의에 따라 추가 형식으로 확장할 수 있는 클래스 구현 예시 1. 사용자 지정서식 클래스 UriEncodeFormatter 구현 using System; using System.Globalization; namespace CustomFormat { /// 클래스 요약 정보 /// 문자열 서식 지정을 위한 추가 기능을 제공하는 사용자 지정 서식 공급자 구현 /// "{arg#:st}"를 사용하여 형식이 지정된 값의 URI 인코딩을 제공함 sealed class UriEncodeFormatter : IFormatProvider, ICustomFormatter { public static readonly UriEncodeFormatter Default = new UriEn.. 2023. 3. 15. 이전 1 다음 728x90