Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
c# specialization/overload
//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; namespace Rextester { public class Collection<T> {}; public class Program { static int f<T>(T c) { return 1; } static int f(string c) { return 2; } static int g<T>(T c) { return f(c); } public static void Main(string[] args) { //Your code goes here Console.WriteLine("g():"); Console.WriteLine(g((int)1)); Console.WriteLine(g((string)null)); Console.WriteLine("f():"); Console.WriteLine(f((int)1)); Console.WriteLine(f((string)null)); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
RNJHEFDSS VASX
Operadores
Remove xmlns and select signle node
Sequential n Take ex
Math
Boggle
Reverse linked list iterative method
Execution flow of static and normal constructor of base and derived class.
Collections
3 numper
Please log in to post a comment.