How to create class level variable that can be assigned
value at the time of declaration and in the constructor
alone?

Answer Posted / guest

Declare it with ReadOnly modifier

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get records from a database?

587


Suppose I have two combobox .. And I have some items in both combobox now I need to check the item in both combobox if same item is present in both combobox I need to display that item in message box?

574


What is form based application?

543


Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?

552


Explain the difference between listindex and tab index?

542






Which of the following position is the default docking position of the statusstrip control on the form?

576


Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.

560


What is the use of runworkasync() methods?

573


What is the extension of the windows installer file?

570


What are the components of gui for windows?

509


How do I change the console application in windows?

493


Explain the need of z-order method?

512


What are windows based applications examples?

535


What is form design?

550


Which event occurs when a user drags an item in a treeview or listview control?

557