Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create Textbox with ellipse button Pin
ahmed_one18-Mar-14 18:12
ahmed_one18-Mar-14 18:12 
QuestionCalculating the area of a self intersecting polygon Pin
Member 1067580817-Mar-14 23:38
Member 1067580817-Mar-14 23:38 
SuggestionRe: Calculating the area of a self intersecting polygon Pin
Richard MacCutchan18-Mar-14 0:47
mveRichard MacCutchan18-Mar-14 0:47 
QuestionHow to solve a non linear Equation is Visual studio 2012/C# Pin
Nadish Anand17-Mar-14 15:06
Nadish Anand17-Mar-14 15:06 
AnswerRe: How to solve a non linear Equation is Visual studio 2012/C# Pin
Bernhard Hiller17-Mar-14 22:14
Bernhard Hiller17-Mar-14 22:14 
AnswerRe: How to solve a non linear Equation is Visual studio 2012/C# Pin
Matt T Heffron18-Mar-14 8:30
professionalMatt T Heffron18-Mar-14 8:30 
QuestionWhat is used to identify a Generic Type Parameter? Pin
Jörgen Andersson16-Mar-14 10:33
professionalJörgen Andersson16-Mar-14 10:33 
AnswerRe: What is used to identify a Generic Type Parameter? Pin
BillWoodruff16-Mar-14 20:01
professionalBillWoodruff16-Mar-14 20:01 
I think the basic idea for the syntax of a "generic" parameter in .NET is that it can be any group-of-glyphs (set of characters) that meaningfully serve as a "place-holder" that will hold, at run-time, any valid .NET Type.

A convention that has developed, and which is used in many books about C# .NET ... though I am not sure it has ever been formalized in the C# language specification ... is to use single characters like "T," and "U," etc., for generic parameter names.

In terms of the syntax of the .NET Types you pass to some Method that receives generic parameters, I think whether or not you must use a fully qualified Type Name depends on the name-scope context in effect at the moment you wish to pass the Type.

So, if you have valid "using" statements in effect, then you can just pass the current valid variable name by itself; if the context does not already provide the ability to use the current name alone, then you must use the fully qualified Type name. Hopefully, you would get a compile-time error if you did not include all the required access syntax for any variable.

Am I understanding what you are asking here correctly ?
“The best hope is that one of these days the Ground will get disgusted enough just to walk away ~ leaving people with nothing more to stand ON than what they have so bloody well stood FOR up to now.” Kenneth Patchen, Poet


modified 17-Mar-14 2:13am.

GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson16-Mar-14 20:59
professionalJörgen Andersson16-Mar-14 20:59 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 12:06
mvePete O'Hanlon17-Mar-14 12:06 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
BillWoodruff17-Mar-14 18:51
professionalBillWoodruff17-Mar-14 18:51 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 21:15
mvePete O'Hanlon17-Mar-14 21:15 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson17-Mar-14 21:53
professionalJörgen Andersson17-Mar-14 21:53 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon17-Mar-14 22:42
mvePete O'Hanlon17-Mar-14 22:42 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Jörgen Andersson17-Mar-14 23:43
professionalJörgen Andersson17-Mar-14 23:43 
GeneralRe: What is used to identify a Generic Type Parameter? Pin
Pete O'Hanlon18-Mar-14 0:50
mvePete O'Hanlon18-Mar-14 0:50 
QuestionAutomapper exception when converting object with inheriting members Pin
impeham16-Mar-14 5:19
impeham16-Mar-14 5:19 
QuestionHow to access Advanced Class with API Pin
Member 1063699816-Mar-14 4:25
Member 1063699816-Mar-14 4:25 
AnswerRe: How to access Advanced Class with API Pin
Dave Kreskowiak16-Mar-14 7:31
mveDave Kreskowiak16-Mar-14 7:31 
GeneralRe: How to access Advanced Class with API Pin
Member 1063699816-Mar-14 9:50
Member 1063699816-Mar-14 9:50 
GeneralRe: How to access Advanced Class with API Pin
Dave Kreskowiak16-Mar-14 14:16
mveDave Kreskowiak16-Mar-14 14:16 
GeneralRe: How to access Advanced Class with API Pin
Member 1063699816-Mar-14 15:56
Member 1063699816-Mar-14 15:56 
QuestionHow create table in SQL Server using C# and data from Excel. Pin
Sick Series15-Mar-14 4:32
Sick Series15-Mar-14 4:32 
AnswerRe: How create table in SQL Server using C# and data from Excel. Pin
OriginalGriff15-Mar-14 4:48
mveOriginalGriff15-Mar-14 4:48 
AnswerRe: How create table in SQL Server using C# and data from Excel. Pin
Maciej Los15-Mar-14 6:43
mveMaciej Los15-Mar-14 6:43 

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.