in .Net All Thing is Object but I have question. I write a method
public static MvcHtmlString ObjectTable(this HtmlHelper helper,
ICollection<Object> objects, ICollection<string> header)
but I don’t add system.object and get error for add the namespace.
my question is:if all thing in .NET driven form object but why i should add the namespace?
The purpose of adding a
usingdirective is simply to allow you to use names within that namespace without fully-qualifying them.So you don’t have to add a
usingdirective. You could write:Or, as
objectis always an alias forSystem.Object, you could write:By the way, not everything derives from object…