Microsoft Asp Net Programming With Visual C# Net V 1002003 Step By Step [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Microsoft Asp Net Programming With Visual C# Net V 1002003 Step By Step [Electronic resources] - نسخه متنی

G. Andrew Duthie

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







Chapter 3 Quick Reference


































To




Do this




Code




Declare a variable




Use the data type, followed by the variable name.




int MyInt;




Modify the accessibility of a variable or procedure




Use the public, private, internal, or protected keywords




public void myProc()


{


}




To use structured exception handling




Create a trycatchfinally block.




try


{


// Code to try


}


catch ( System.Exception )


{


// Handle error


}


finally


{


// Code that will ALWAYS run }




Inherit from a base class




Append the base class name to the name of the derived class, separated by a colon




class Dog : Animal


{


}




Declare a method that will be overridden in classes that descend from the current class




Use the virtual modifier




public virtual void myProc()


{


}




Override a method declared in a base class




Use the override modifier




public override void myProc()


{


}



/ 127