صفحه 1:
دانشگاه آزاد اسلامی واحد کرج
صفحه 2:
* مقدمه ( معماري ۷۷۵۲۱۰ 7۲3۲06 61لا و زبان #6 )
* اصول مقدماتي زبان HC
* مفاهیم 01255 و 661ز00
* ارث بري (1]01006 ۳6۲ و چندريختي
(Polymorphism)
Structures. Enumeration °
garbage Collection. Nested class ٠
Abstract class. Interface ¢
صفحه 3:
string , Array . Collection
رسیدگی به حالات استثنا
(Delegate) cus, , Event) os,
Windows Application
box , Windows controls 013100هائيستاندارد
دسترسی به داده ها از طریق ۵۱0.۱61 1
جند ريسمانى (Multithreading)
سیستم فایل و 5۲63۳0
صفحه 4:
کت تل
C#,Vb,C++,
>| our Net applications
‘Corumon Language Runtime (CLR)
Language Jnat fa Time
Compiler Compiler
compile tine an tine
Assembly file
صفحه 5:
کت تل
* CLR (Common Language Runtime)
— MSIL ¢ Microsoft Intermediate la
—CLS (Common Language Specification)
— CTS (Common Type System )
— GC (Garbage Collection )
—JIT (Just in Time Compilers )
* FCL (Framework Class Library )
صفحه 6:
کت تل
(Our Net Appllcations
(WaForms, Web applications, Web Services)
Data (ADO.Net) and XML Library
‘Framework Class Library (CL)
] Seouity, Reecon, UD
‘Common Language Runtime (CLR)
(Debugger, Type Chesking UT, exceptions, GC)
صفحه 7:
۹
- سرعت و کارایی ++ لا
- شىء كرايى OOOO
- راحتی 20000010010 ۲
۰ 0 0 0815 ]100000 2
مه وه جع
- ایجاد سهولت در برنامه نویسی
لاللا ]001 0 0101010180 008)11,]۲ 006 06 0 ,01۴80 11۳00 0110 0610 0010 0
0 0 0 001100 00 006:0۵ 0 ۳ 0008 0 0060 00 800 0 6008008 ۵ 10080065 ۵0
Application...
صفحه 8:
۰ ۴۳026
- مجموعه چندین فایل اجرايي و کتابخانه اي براي ایجاد یک برنامه
- اطلاعات مربوط به آن در فایلی با پسوند .[50۳0
Console App. Windows App. Class —
.Library
Solution ٠
7 مجموعه چندین پروژه مرتبط با هم
- اطلاعات مربوط به آن در فایلی با پسوند SIN.
صفحه 9:
using System; Csc ۰
ener sey lacer sax Console ° ی
Application :
class HelloWerld
1
static void Main(string[] args)
{
Console .WriteLine ("Hello World") ;
صفحه 10:
NameSpace
System
System.Data مجموعه اي از كلاسهاي مرتبط با هم -<
System.Drawin ۳
0 9 امکان استفاده به صورت تو در تو -
System.Windows.For ۰ در بردارنده کلاس ۰ رخداد » استثنا و وکالت <
ms ١
System.Xml Using
Class
(Method ) at 5¢ Field ( تركيبي از داده -
QMain متد
صفحه 11:
* توضیحات برنامه
Line Comment :/
Block Comment :/* +
documentation Comment : ///
براي تولید سند براي کلاسها و برنامه
* نقطه شروع برنامه متد Main
Case sensitive it; #C ۶
* قرار دادن کلاس در فضای نام اختیاری است.
cs (es Malin coal بدون بارامس Spc esta)
صفحه 12:
static void Main(string[] args)
1
Console Write ("Please enter your nam:
string name = Console .Readbine () ;
Console .WriteLine
(Helle {0}, Good Luck in CH", name);
}
Console Writeline (“Hello ”- name + “, Good Luck in c#”);
صفحه 13:
صفحه 14:
[Size in bytes [Description
Integral Types
1 ay contain integers from 0-255
1 [Signed byte from -128 to 127
2 Ranges fiom -32,768 10 32.767
2 [Unsigned, ranges from 0 10 65,535
4 [Ranges from -2,147,483,648 to 2,147,483,647
4 rnsigned, ranges from 0 to 4,294,967,295
8 Ranges fiom -9,223,372,036,854,775,808 to
2307
Net type
[Byte
[sByre
finite
lune
دوس
متنا
lintes
[ce type
ushort|
int (default)
peint
jong,
صفحه 15:
insigned, ranges from 0 to 18,446,744,073,709,551,615
Floating Point Types,
Ranges from +1.5 « 10% to +3.4 = 10° with 7 digits:
precision, Requires the suffix ۵ ۵ ۳
Ranges from =5.0 » 10° to =1.7 x 10" with 15-16
جوز
Precision
‘Other Types:
‘oniains either tie or false
[Contains any single Unicode character enelosed in single
juotation mark such as
[Ranges from 1.0 = 10" to 7.9 « 10™ with 28-29 digits
resision. Requires the suffix ‘mn! or MI
16
[umes
single
[Double
[Boolean
|
[Decimal
long
loat
iouble
default)
اموا
shar
تمسق
صفحه 16:
<data type> <variable>; int i;
true;
bool isReady
Eloat percentage = 87.88, average = 43.9;
char digit ='7;
static void Main()
{
int age;
// age = 18;
Console.WriteLine(age); | // error
صفحه 17:
const double PI = 3.142;
const int MARKS; // Syntax Error
#define ا 100
صفحه 18:
1۳ See SNCS EINE)
jot
salary totalSalary
myMathsMarks isPaid
متد
GetTotal() Start ()
WriteLine() Last IndexOf ()
صفحه 19:
Description
Simple assignment
Additive assignment
Subtractive assignment
Multiplicative assignment
Division assignment
Modulo assignment
Description
Add
Subtract
Multiply
Divide
Remainder or modulo
Increment by 1
Decrement by 1
Operand
+
صفحه 20:
عملگرهاي رابطه اي و منطقي
Description
Bitwise AND
Bitwise OR
Bitwise XOR
Bitwise NOT
“Logical” or “short circuit” AND
“Logical” ot “short circuit” OR
Operand
3
۸
!
عه
I
Description
Equality check
Un-equality check
Greater than
Less than
Greater than or equal to
Less than or equal to
صفحه 21:
Description
Left shift bitwise operator
Right shift bitwise operator
Member access for objects
Index operator used in arrays and collections
Cast operator
Temary operator
Operand
لت
>>
2
صفحه 22:
* دستورات شرطی و انتخابی
طعن الاك ۶ ۱۳
*؟ دستورات حلقه
while .for.do while. foreach