[COLOR=#00008B]public[/COLOR] [COLOR=#00008B]static[/COLOR] [COLOR=#00008B]string[/COLOR] [COLOR=#2B91AF]FirstCharToUpper[/COLOR]([COLOR=#00008B]string[/COLOR] input)
{
[COLOR=#00008B]if[/COLOR] ([COLOR=#2B91AF]String[/COLOR].[COLOR=#2B91AF]IsNullOrEmpty[/COLOR](input))
[COLOR=#00008B]throw[/COLOR] [COLOR=#00008B]new[/COLOR] [COLOR=#2B91AF]ArgumentException[/COLOR]([COLOR=#800000]"ARGH!"[/COLOR]);
[COLOR=#00008B]return[/COLOR] input.[COLOR=#2B91AF]First[/COLOR]().[COLOR=#2B91AF]ToString[/COLOR]().[COLOR=#2B91AF]ToUpper[/COLOR]() + [COLOR=#2B91AF]String[/COLOR].[COLOR=#2B91AF]Join[/COLOR]([COLOR=#800000]""[/COLOR], input.[COLOR=#2B91AF]Skip[/COLOR]([COLOR=#800000]1[/COLOR]));
}
Module Module1
Sub Main()
Dim s As String = "hello world abc def"
Dim r As String = ""
r = s.Split(" ").Select(Function(x) UCase(x.Substring(0, 1)) + x.Substring(1)).Aggregate(Function(x, y) x + " " + y).ToString
Console.WriteLine(r)
Console.ReadKey()
End Sub
End Module
class Program
{
static void Main(string[] args)
{
String s = "hello world abc def";
String r = "";
r = s.Split(' ').Select(x => x.Substring(0, 1).ToUpper() + x.Substring(1)).Aggregate((x, y) => x + " " + y).ToString();
Console.WriteLine(r);
Console.ReadKey();
}
}
ya buda sorulmaz ki. Yardım etmeyin böylelerine. Cahil yazılımcı adında kişiler çıkıyor sonra piyasaya. Böylelerine hiç bir lisans vermemek lazım.