Concern about overriding methods

  • Thread starter Thread starter Jack Addington
  • Start date Start date
J

Jack Addington

I have a class method defined as:

public virtual void SomeMethod(string key, Int32 id) {...}

In an descendent class I am typing in override and selecting the method from
the autoText. When it builds the shell for the method it is changing the
Int32 to an int ie)

public override void SomeMethod(string key, int id)
{
base.SomeMethod(key, id);
}

I am simply changing int back to Int32 but it struck me as strange... should
I be worried about this? Its in VS2003.

thx
 
int is just an alias for Int32. Refers to the same thing. The IDE probably
just uses the 'int' alias - since that gets the syntax highlighting. It
doesn't look at which alias the ancestor class used. Nor can it, since if
the ancestor is compiled into a DLL, which was used to refer to it: Int32 or
int, is not tracked.
 
Back
Top