Click here to Skip to main content
16,012,468 members
Home / Discussions / C#
   

C#

 
AnswerRe: can tell me how i write code for windows authentification in c#.net to connect the remote computer and getting the database back up from sql server 2000. Pin
Saira Tanwir7-Dec-06 21:08
Saira Tanwir7-Dec-06 21:08 
Questionhow to change the vs 2005 projects into to vs 2003 in c# .net 1.1 Pin
haneef17-Dec-06 20:17
haneef17-Dec-06 20:17 
AnswerRe: how to change the vs 2005 projects into to vs 2003 in c# .net 1.1 Pin
Vasudevan Deepak Kumar7-Dec-06 22:11
Vasudevan Deepak Kumar7-Dec-06 22:11 
AnswerRe: how to change the vs 2005 projects into to vs 2003 in c# .net 1.1 Pin
jdkulkarni7-Dec-06 22:11
jdkulkarni7-Dec-06 22:11 
GeneralRe: how to change the vs 2005 projects into to vs 2003 in c# .net 1.1 Pin
Vasudevan Deepak Kumar7-Dec-06 22:13
Vasudevan Deepak Kumar7-Dec-06 22:13 
QuestionComboBox bug? Pin
t800t87-Dec-06 20:02
t800t87-Dec-06 20:02 
AnswerRe: ComboBox bug? Pin
t800t87-Dec-06 20:46
t800t87-Dec-06 20:46 
QuestionCode reuse: compile-time decisions based on attributes of generic types Pin
Andrew Shapira7-Dec-06 19:42
Andrew Shapira7-Dec-06 19:42 
Is it possible to write code to make compile-time decisions about which code to include, depending on attributes (or the presence of) generic parameters of the class?

For example:
<br />
class HashTable<TKey,optional TValue><br />
{<br />
  ...<br />
  struct Slot {<br />
    public TKey Key;<br />
    #if present(TValue)<br />
      public TValue Value;<br />
    #endif<br />
  }<br />
}<br />

When TValue is present, the hash table would behave like a normal hash table; when TValue is not present, the hash table would behave like a set. The difference between a set and a hash table is very minor and it would be error-prone and inelegant to have to duplicate the entire class to get both a set and hash table from code that, with very little modification, could support both.

Something like this might be feasible too (the semantics here with SpecialTValue are problematic; this example is just to illustrate the idea):
<br />
class HTBase<TKey,TValue><br />
{<br />
  ...<br />
  struct Slot {<br />
    public TKey Key;<br />
    #if (TValue is SpecialTValue)<br />
      public TValue Value;<br />
    #endif<br />
  }<br />
}<br />
<br />
class HashTable<TKey,TValue> : HTBase<TKey,TValue><br />
<br />
class Set<TKey> : HTBase<TKey,SpecialTValue><br />

QuestionDataset to Text File Pin
Bjorn24047-Dec-06 19:15
Bjorn24047-Dec-06 19:15 
AnswerRe: Dataset to Text File Pin
stancrm7-Dec-06 20:52
stancrm7-Dec-06 20:52 
AnswerRe: Dataset to Text File Pin
Vasudevan Deepak Kumar7-Dec-06 22:14
Vasudevan Deepak Kumar7-Dec-06 22:14 
GeneralRe: Dataset to Text File Pin
Bjorn24047-Dec-06 23:08
Bjorn24047-Dec-06 23:08 
QuestionSQL Stored Procedure and Datagrid problem... Pin
swjam7-Dec-06 18:31
swjam7-Dec-06 18:31 
JokeRe: SQL Stored Procedure and Datagrid problem... Pin
wenyuan7-Dec-06 20:19
wenyuan7-Dec-06 20:19 
Questionhow to find menu item selected on other web page Pin
mohd imran abdul aziz7-Dec-06 18:18
mohd imran abdul aziz7-Dec-06 18:18 
AnswerRe: how to find menu item selected on other web page Pin
Vasudevan Deepak Kumar7-Dec-06 22:16
Vasudevan Deepak Kumar7-Dec-06 22:16 
Questionhow to access the data stored in one form's control into other form belonging to the same project in C# Pin
kalaveer7-Dec-06 17:33
kalaveer7-Dec-06 17:33 
QuestionRe: how to access the data stored in one form's control into other form belonging to the same project in C# Pin
M LN Rao7-Dec-06 18:10
M LN Rao7-Dec-06 18:10 
AnswerRe: how to access the data stored in one form's control into other form belonging to the same project in C# Pin
atulonweb@hotmail.com7-Dec-06 18:28
atulonweb@hotmail.com7-Dec-06 18:28 
GeneralRe: how to access the data stored in one form's control into other form belonging to the same project in C# Pin
Christian Graus7-Dec-06 19:25
protectorChristian Graus7-Dec-06 19:25 
AnswerRe: how to access the data stored in one form's control into other form belonging to the same project in C# Pin
Christian Graus7-Dec-06 18:43
protectorChristian Graus7-Dec-06 18:43 
GeneralRe: how to access the data stored in one form's control into other form belonging to the same project in C# Pin
atulonweb@hotmail.com7-Dec-06 18:51
atulonweb@hotmail.com7-Dec-06 18:51 
AnswerRe: how to access the data stored in one form's control into other form belonging to the same project in C# Pin
wenyuan7-Dec-06 20:22
wenyuan7-Dec-06 20:22 
QuestionVisual Studio 2005 C#.Net Pin
Sri harini7-Dec-06 17:08
Sri harini7-Dec-06 17:08 
Questionlink label (to PDF files) Pin
printscreen123457-Dec-06 16:46
printscreen123457-Dec-06 16:46 

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.