3 ms·
C# Actually does have duck typing via the DLR (Dynamic Language Runtime) now. You can totally define a method as public dynamic DoDynamicStuff(dynamic woo
by rjbwork 12y ago
C# Actually does have duck typing via the DLR (Dynamic Language Runtime) now. You can totally define a method as
public dynamic DoDynamicStuff(dynamic wooDynamix)
{
Console.WriteLine(wooDynamix.DynamicProperty1);
}
- MichaelGG 12y agoRight but it doesn't have the static kind the compiler uses for foreach loops or dictionary initializers.