using System; class Student { int rollno; string stdName; static void Main() { Student s = new Student() { rollno=1,stdName="Ramesh" }; //Object Initializer } }
for(count=0;count<20;count++) { if(count==10) { break; } }
//Base Class Public Class BaseClass { public virtual string Name() { return "my name"; } }
//Derived Class Public Class DerivedClass: BaseClass { public override string Name() { return "my name is Akiii"; } }
Classname objectname = new Classname();
int[] array = new int[] { 3, 1, 4, 5, 2 }; //Declare Array Array.Sort<int>( array ); // Sort Method used Asending Order Array.Reverse( array ); // reverse Method used Decenting Order
declaration-statement: local-variable-declaration ; local-constant-declaration ;
Response.ExpiresAbsolute = DateTime.Now; Response.Expires = -1441; Response.CacheControl = "no-cache"; Response.AddHeader("Pragma", "no-cache"); Response.AddHeader("Pragma", "no-store"); Response.AddHeader("cache-control", "no-cache"); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoServerCaching();