Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
basics of generics
//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 gen<T> { public void getdetails(T parameter) { Console.WriteLine(parameter); }} public class Program { public static void Main(string[] args) { //Your code goes here //Console.WriteLine("Hello, world!"); gen<int> g=new gen<int>(); g.getdetails(12); gen<string>g1=new gen<string>(); g1.getdetails("shivi"); } } }
run
|
edit
|
history
|
help
0
Collections demo
HTML Hex to RGB without using System.Drawing C#
sdfghjikujyhtgrfedwcdf
convert a string of numbers to a list then use a forEach to loop through the list
tester of xpath
Interface referance variable
Selection Sort
base interior 0.1
t
v v