Skip to main content

C# පළමු කොටස...

<!--[if !mso]> <![endif]

C# පළමු කොටස...
C# පළමු කොටසේදී අපි CONSOLE APPLICATIONS එකක් හදන්නේ කොහොමද කියල බලමු..
 මේ සදහා මම Visual Studio 2010 තමය් භාවිතා කරන්නේ..






01- Visual Studio 2010 icon එක මත Double Click කරන්න. එවිට ඔබට පහත පරිදි window එකක් දැකගත හැකිවෙය්..


02- ඉන් පසුව එහි වම් පස ඉහල කෙලවරෙහි ඇති File menu එක Click කර --> New --> Project ‍තෝරා click කරන්න..


03-එවිට ලැබෙන window එකෙහි වම් පස ඇති Recent Templates හි
Visual C# --> Windows තෝරා රූපයේ අකාරයට මැද තීරුවේ Console Application යන්න ‍තෝරන්න..

ඉන් පසුව Solution Name සදහා ConsoleApplication1 යොදන්න..
දැන් OK කරන්න..

04- දැන් ඔබට පහත පරිදි Source Code අඩංගු window එකක් ලැබෙවි..


05- පහත Highlight කර ඇති Codes රූපයේ පරිදි එයට ඇතුලත් කර save කරන්න.


06- දැන් Debug Menu එකේහි ඇති Start Debug යන්න Click කර (හෝ F5) ඔබට Application එක Run කර ගත හැක.. එවිට පහත පරිදි දැක ගත හැක..




07-දැන් Close Button එක Click කර Exit වන්න..
C# වලින් ඔබෙ පළමු Console Application එක දැන් සාදා අවසානයි.. මීලග කොටසේදී අපි එහි Source Code එක ගැන පියවරෙන් පියවර කතා කරමු..



-->

Comments

Popular posts from this blog

Multithreading C# : Part 01

Multithreading with C# Think about old days, you have one central processing unit (CPU) in your pc which is capable of executing one operation at a time. If we have 5 operations to run then we have to wait till one operation is completed and then only other one can start. What will happen if the running operation has a bug and got stuck, then whole computer going to be freeze and useless unless we restart it. This is a huge problem. So if we can run multiple operation in the same time that would be great because it will solve this problem.

Windows 8 Icons: Segoe UI Symbol

Whatz up guyz... In this post i am going to tell you about "Windows 8 Icons" . If you ever used a windows 8 app, you know that there are so many standard Icons. Actually we do not want to add images for each button, simply we can use the character map for obtain the icons.Go to the character map and select the font as "Segoe UI Symbol" .Then you will see lot of standard symbols in the character map.

C# Character Escape Sequences

Character combinations consisting of a backslash ( \ ) followed by a letter or by a combination of digits are called "escape sequences." To represent a newline character, single quotation mark, or certain other characters in a character constant, you must use escape sequences. An escape sequence is regarded as a single character and is therefore valid as a character constant.