What is actually the difference between the below two code snippets?
Object o = Activator.CreateInstance(typeof(StringBuilder)); StringBuilder sb = (StringBuilder) o;
and
StringBuilder sb = new StringBuilder();
Aucun commentaire:
Enregistrer un commentaire