csharp structure

Code Example - csharp structure

                
                        struct Books{
	string author;
  	string title;
}

class StructureExample{
	static void Main(String[] args){
    	Books b1 = new Books();
      	b1.author = "J.K. Rowling";
      	b1.title = "Harry Potter";
    }
}
                    
                
 

structure in c sharp with example

                        
                                Book 1 title : C Programming
Book 1 author : Nuha Ali
Book 1 subject : C Programming Tutorial
Book 1 book_id : 6495407
Book 2 title : Telecom Billing
Book 2 author : Zara Ali
Book 2 subject : Telecom Billing Tutorial
Book 2 book_id : 6495700