Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
IFormatProvider Caveat
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class FormatProv : IFormatProvider, ICustomFormatter { public object GetFormat(Type formatType) { if (formatType == typeof(FormatProv)) return this; return null; } public string Format(string format, object arg, IFormatProvider formatProvider) { return format; } } public class Program { public static void Main(string[] args) { Console.WriteLine( string.Format(new FormatProv(), "format just loves {0:me}", "you")); Console.WriteLine( string.Format(new FormatProv(), "format just loves {0:me}", 1)); } } }
run
|
edit
|
history
|
help
0
asxs
Pascal Tringle
asxasxdf
Write a program to sort given array using bubble sort.
asxsd
T
Luhn Formula Demo C#
//Json Get Field from Array
C# constructor in inheritance
D112