use other name of class
-
-
I want to use other name of class for example: this is a simple class: class Myclass { private int _No; public Myclass() { } public int No { get{return _No;} } } I want to use other name a new name (Nocc) for Myclass Nocc N1=new Nocc(); N1.No=91;
Your
Myclass
doesn't have another name. Where did thisNocc
thing come from?A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Your
Myclass
doesn't have another name. Where did thisNocc
thing come from?A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
I want to use other name of class for example: this is a simple class: class Myclass { private int _No; public Myclass() { } public int No { get{return _No;} } } I want to use other name a new name (Nocc) for Myclass Nocc N1=new Nocc(); N1.No=91;
class Nocc { #region Variables private int _no; #endregion #region Constructors public Nocc() { } #endregion #region Properties public int No { get {return (_no);} set {_no = value;} } #endregion } I have no idea what your asking for... I just like #regions ;P
-
first thank you for reply Nocc is the new name i want to use it Like Myclass i do not know what's the command to do something like this thanks in advance,
A class cannot have two names. To use the Nocc name all you'd have to do is replace MyClass with Nocc in the class definition.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
class Nocc { #region Variables private int _no; #endregion #region Constructors public Nocc() { } #endregion #region Properties public int No { get {return (_no);} set {_no = value;} } #endregion } I have no idea what your asking for... I just like #regions ;P
irishdunn wrote:
I have no idea what your asking for
I think he means aliasis. Like String and string. System.Int32 and int :)
-
irishdunn wrote:
I have no idea what your asking for
I think he means aliasis. Like String and string. System.Int32 and int :)