
Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Prepare-se para as provas
Estude fácil! Tem muito documento disponível na Docsity
Prepare-se para as provas com trabalhos de outros alunos como você, aqui na Docsity
Encontra documentos específicos para os exames da tua universidade
Prepare-se com as videoaulas e exercícios resolvidos criados a partir da grade da sua Universidade
Responda perguntas de provas passadas e avalie sua preparação.
Ganhe pontos para baixar
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Os conceitos básicos da programação c#, incluindo declarações de variáveis, tipos de dados, operadores aritméticos, manipulação de strings, controles de fluxo e estruturas de dados. Além disso, fornece exemplos práticos para ilustrar cada conceito.
Tipologia: Notas de estudo
1 / 1
Esta página não é visível na pré-visualização
Não perca as partes importantes!

Namespace using Namespace;
Data Types byte,sbyte,int,uint,short,ushort,long,ulong,float,double,decimal,bool,char,string, object
Variable Declaration public | protected internal | protected | internal | private
Type Declaration public | internal | private
Suffixes f -float, l,L - long, No double suffix, U,u - unsigned
Arrays
Initialize Array
Change Size of Array
Comments //Comment text//Comment text Multi-line comments /* This is commented */
XML Comments Press the / (forward slash) key 3 times.
Line Continuation string strtext = @“To break a long string across multiple lines, end the string, add the line continuation characterend the string, add the line continuation character and continue the string on the next line.”;
Arithmetic Operators
String Concatenation
Relational Operators < (Less Than), <= (Less Than or Equal< (Less Than), <= (Less Than or Equal To), > (Greater Than), >= (Greater Than or Equal To), == (Equal To),! = (Not Equal To), is, as
Logical Operators & (And), | (Or), ^ (Xor),&& (AndAlso), || (OrElse)
Assignment Operators = (Equals), += (Addition), -= (Subtraction), *= (Multiplication), /= (Division), %== (Equals), += (Addition), -= (Subtraction), *= (Multiplication), /= (Division), %= (Modulus), &= (And),|= (OR), ^= (Exclusive OR), <<= (Left Shift), >>= (Right Shift), ??
String Manipulation .Substring(
Error Handling try { //
If Else if(expression) { <statement 1>; } else {{ <statement 2>; }
C# version of IIF() variable == ?true:false;
For Loop for(statement) {{
For Each Loop foreach(
While Loop while(
Do-While Loop do {
Select Case Statement switch(
Function StructureFunction Structure <private, public, protected, internal> [static]
Sub Procedure StructureSub Procedure Structure <private, public, protected, internal> void <method_name>([Parameters]) { //body of the procedure; }
Class Structure public class <Class_Name> {{ //body of class }
public 'method_prototypes 'data_attributes private 'method_prototypes'method_prototypes 'data_attributes internal 'method_prototypes static 'method_prototypes 'data_attributes
Edited By:PsychoCoder, Martyr Published: October 9, 2007