dynamic is a implicit or explicit type allocation ? How memory allocation occurs for dynamic variables in context of below example at runtime.
dyanmic impact on type safety as C# is type safe language.
public class Program
{
static void Main(string[] args)
{
dynamic dynamicVar = 10;
dynamicVar = true;
dynamicVar = "hello world";
// compiles fine
int index = dynamicVar.IndexOf("world");
}
}