public class Members_Only { public int Height { get; set; } public int Width { get; set; } }
how to set the value in this cods by takeing a sample value
and how to get the value ,
is set and get what are this ? is it default
To get value
Members_Only member = new Members_Only(); member.Height = 20; member.Width = 45; //Get Value int h = member.Height; int w = member.Width;
Default Value depends on Type, For INT it will be 0, for string it will be NULL
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.