Örnek C# Metodu:
public int? carp(int sayi1,int sayi2, int? sayi3 =null,int? sayi4 = null,int? sayi5=null)
{
int? a = string.IsNullOrEmpty(Convert.ToString(sayi3)) ? 1 : sayi3;
int? b = string.IsNullOrEmpty(Convert.ToString(sayi4)) ? 1 : sayi4;
int? c = string.IsNullOrEmpty(Convert.ToString(sayi5)) ? 1 : sayi5;
int? sonuc = sayi1 * sayi2 * a * b *c;
return sonuc;
}