Click here to Skip to main content
15,893,790 members
Home / Discussions / C#
   

C#

 
Generala better way to make, and populate, a List<Type> ? Pin
BillWoodruff7-Aug-12 16:34
professionalBillWoodruff7-Aug-12 16:34 
GeneralRe: a better way to make, and populate, a List<Type> ? Pin
PIEBALDconsult7-Aug-12 16:54
mvePIEBALDconsult7-Aug-12 16:54 
GeneralRe: a better way to make, and populate, a List ? Pin
BillWoodruff7-Aug-12 18:06
professionalBillWoodruff7-Aug-12 18:06 
GeneralRe: a better way to make, and populate, a List ? Pin
BillWoodruff9-Aug-12 8:35
professionalBillWoodruff9-Aug-12 8:35 
GeneralRe: a better way to make, and populate, a List ? Pin
PIEBALDconsult9-Aug-12 12:16
mvePIEBALDconsult9-Aug-12 12:16 
GeneralRe: a better way to make, and populate, a List ? Pin
SledgeHammer017-Aug-12 18:58
SledgeHammer017-Aug-12 18:58 
GeneralRe: a better way to make, and populate, a List ? Pin
PIEBALDconsult8-Aug-12 3:32
mvePIEBALDconsult8-Aug-12 3:32 
GeneralRe: a better way to make, and populate, a List ? Pin
DaveyM698-Aug-12 23:10
professionalDaveyM698-Aug-12 23:10 
Response to edit:
I think what he meant is the using directives are not required as everything can be written in full i.e.
C#
private static System.Collections.Generic.List<System.Type> OkToModify = 
    new System.Collections.Generic.List<System.Type> 
{ 
    typeof(System.Windows.Forms.CheckBox),
    typeof(System.Windows.Forms.TextBox),
    typeof(System.Windows.Forms.Button), 
    typeof(System.Windows.Forms.Panel),
    typeof(System.Windows.Forms.Label)
};

Personally, I think this is horrible and I always use usings wherever possible, but some will disagree...
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: a better way to make, and populate, a List ? Pin
Pete O'Hanlon9-Aug-12 0:51
mvePete O'Hanlon9-Aug-12 0:51 
QuestionGet Variable Type from String Pin
eddieangel7-Aug-12 11:16
eddieangel7-Aug-12 11:16 
GeneralRe: Get Variable Type from String Pin
PIEBALDconsult7-Aug-12 13:18
mvePIEBALDconsult7-Aug-12 13:18 
GeneralRe: Get Variable Type from String Pin
BillWoodruff7-Aug-12 16:38
professionalBillWoodruff7-Aug-12 16:38 
GeneralRe: Get Variable Type from String Pin
SledgeHammer017-Aug-12 18:55
SledgeHammer017-Aug-12 18:55 
GeneralRe: Get Variable Type from String PinPopular
SledgeHammer017-Aug-12 18:52
SledgeHammer017-Aug-12 18:52 
GeneralRe: Get Variable Type from String Pin
PIEBALDconsult8-Aug-12 3:46
mvePIEBALDconsult8-Aug-12 3:46 
AnswerRe: Get Variable Type from String Pin
Shameel8-Aug-12 4:49
professionalShameel8-Aug-12 4:49 
GeneralRe: Get Variable Type from String Pin
SledgeHammer018-Aug-12 7:39
SledgeHammer018-Aug-12 7:39 
GeneralRe: Get Variable Type from String Pin
eddieangel8-Aug-12 6:01
eddieangel8-Aug-12 6:01 
GeneralRe: Get Variable Type from String Pin
eddieangel8-Aug-12 6:23
eddieangel8-Aug-12 6:23 
GeneralRe: Get Variable Type from String Pin
SledgeHammer018-Aug-12 7:44
SledgeHammer018-Aug-12 7:44 
GeneralRe: Get Variable Type from String Pin
eddieangel8-Aug-12 8:54
eddieangel8-Aug-12 8:54 
GeneralRe: Get Variable Type from String Pin
Pete O'Hanlon8-Aug-12 9:27
mvePete O'Hanlon8-Aug-12 9:27 
GeneralRe: Get Variable Type from String Pin
SledgeHammer018-Aug-12 9:32
SledgeHammer018-Aug-12 9:32 
GeneralRe: Get Variable Type from String Pin
SledgeHammer018-Aug-12 9:33
SledgeHammer018-Aug-12 9:33 
GeneralRe: Get Variable Type from String Pin
eddieangel8-Aug-12 13:24
eddieangel8-Aug-12 13:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.