Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL Statment Pin
microuser_20008-Feb-07 9:36
microuser_20008-Feb-07 9:36 
GeneralRe: SQL Statment Pin
Colin Angus Mackay8-Feb-07 11:09
Colin Angus Mackay8-Feb-07 11:09 
GeneralRe: SQL Statment Pin
microuser_20008-Feb-07 11:21
microuser_20008-Feb-07 11:21 
Questionis it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 7:14
michal.kreslik7-Feb-07 7:14 
AnswerRe: is it possible to use a value type in a generic method constraint? Pin
Judah Gabriel Himango7-Feb-07 7:41
sponsorJudah Gabriel Himango7-Feb-07 7:41 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 8:05
michal.kreslik7-Feb-07 8:05 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
Judah Gabriel Himango7-Feb-07 8:55
sponsorJudah Gabriel Himango7-Feb-07 8:55 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 9:11
michal.kreslik7-Feb-07 9:11 
Doesn't work, unfortunately:

public static T1 GenericMethod<T1>(IComparable<T1> value1, IComparable<T1> value2) where T1 : struct
{
if (value1 > value2)
{
return value1;
}

return value2;
}

is producing this error:

Operator '>' cannot be applied to operands of type 'System.IComparable<T1>' and 'System.IComparable<T1>'

It doesn't help to use "where T1: struct, IComparable" neither.

Michal
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
Judah Gabriel Himango7-Feb-07 9:27
sponsorJudah Gabriel Himango7-Feb-07 9:27 
GeneralRe: is it possible to use a value type in a generic method constraint? Pin
michal.kreslik7-Feb-07 10:44
michal.kreslik7-Feb-07 10:44 
QuestionHow to capture Datagrid Header Text events? Pin
sundar1567-Feb-07 6:59
sundar1567-Feb-07 6:59 
AnswerRe: How to capture Datagrid Header Text events? Pin
Ravi Bhavnani7-Feb-07 7:07
professionalRavi Bhavnani7-Feb-07 7:07 
QuestionHow to add file onto txbbox? [modified] Pin
Eyungwah7-Feb-07 6:47
Eyungwah7-Feb-07 6:47 
AnswerRe: How to add file onto txbbox? Pin
Ravi Bhavnani7-Feb-07 6:57
professionalRavi Bhavnani7-Feb-07 6:57 
QuestionBufferedGraphicsContext Pin
Jim Warburton7-Feb-07 6:34
Jim Warburton7-Feb-07 6:34 
QuestionDelegate Pin
pssuresh7-Feb-07 6:15
pssuresh7-Feb-07 6:15 
AnswerRe: Delegate Pin
Luc Pattyn7-Feb-07 6:20
sitebuilderLuc Pattyn7-Feb-07 6:20 
QuestionVisual studio functionality Pin
netJP12L7-Feb-07 5:43
netJP12L7-Feb-07 5:43 
AnswerRe: Visual studio functionality Pin
Ravi Bhavnani7-Feb-07 7:11
professionalRavi Bhavnani7-Feb-07 7:11 
QuestionHow to select a treenode with right click Pin
sharpiesharpie7-Feb-07 5:35
sharpiesharpie7-Feb-07 5:35 
AnswerRe: How to select a treenode with right click Pin
Abisodun7-Feb-07 5:54
Abisodun7-Feb-07 5:54 
GeneralRe: How to select a treenode with right click Pin
sharpiesharpie7-Feb-07 6:48
sharpiesharpie7-Feb-07 6:48 
GeneralRe: How to select a treenode with right click Pin
Abisodun7-Feb-07 9:07
Abisodun7-Feb-07 9:07 
QuestionDataGrid Pin
The Brazilian One7-Feb-07 5:28
The Brazilian One7-Feb-07 5:28 
AnswerRe: DataGrid Pin
Marc Clifton7-Feb-07 5:38
mvaMarc Clifton7-Feb-07 5:38 

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.