Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
Questionadding smileyes in chat software????? Pin
imshimshal17-Dec-06 21:52
imshimshal17-Dec-06 21:52 
AnswerRe: adding smileyes in chat software????? Pin
Colin Angus Mackay17-Dec-06 22:46
Colin Angus Mackay17-Dec-06 22:46 
AnswerRe: adding smileyes in chat software????? Pin
abd_o_d17-Dec-06 23:56
abd_o_d17-Dec-06 23:56 
GeneralRe: adding smileyes in chat software????? Pin
Colin Angus Mackay18-Dec-06 0:27
Colin Angus Mackay18-Dec-06 0:27 
GeneralRe: adding smileyes in chat software????? Pin
abd_o_d18-Dec-06 1:25
abd_o_d18-Dec-06 1:25 
Questionhow to excute string formula in c# Pin
jaganil17-Dec-06 21:13
jaganil17-Dec-06 21:13 
AnswerRe: how to excute string formula in c# Pin
Stefan Troschuetz17-Dec-06 21:30
Stefan Troschuetz17-Dec-06 21:30 
QuestionDoes Array.Clear use default? Pin
Andrew Shapira17-Dec-06 19:00
Andrew Shapira17-Dec-06 19:00 
If one has
<br />
T[] a = new T[](something);<br />
...<br />
Array.Clear(a,0,a.Length);<br />

does Array.Clear use default(T)? The documentation for .NET 2.0 and 3.0 suggests that it doesn't (!):
<br />
public static void Clear(Array array, int index,	int length)<br />

Sets a range of elements in the Array to zero, to false, or to a null reference (Nothing in Visual Basic), depending on the element type.

If Array.Clear really does not use default(T), is there some a base class library method that does this:
<br />
static void f(Array a, int index, int length)<br />
{<br />
  for (int i = 0; i < a.Length; i++)<br />
    {  a[i] = default(T);  }<br />
}<br />

where T is the type of the array? Maybe this would be something in System.Collections.Generic in order to allow the method's implementation to get at T. It's easy enough to make my own method to do this but I'd just as soon not do it if something already exists in the base class library.
AnswerRe: Does Array.Clear use default? Pin
AB777117-Dec-06 23:03
AB777117-Dec-06 23:03 
QuestionGeneric Error Pin
sathishtl00717-Dec-06 18:25
sathishtl00717-Dec-06 18:25 
AnswerRe: Generic Error Pin
Bhupi Bhai17-Dec-06 20:18
Bhupi Bhai17-Dec-06 20:18 
AnswerRe: Generic Error Pin
Pete O'Hanlon17-Dec-06 22:34
mvePete O'Hanlon17-Dec-06 22:34 
QuestionControl arrays in C# Pin
OmicronTheta17-Dec-06 11:56
OmicronTheta17-Dec-06 11:56 
AnswerRe: Control arrays in C# Pin
Luis Alonso Ramos17-Dec-06 16:32
Luis Alonso Ramos17-Dec-06 16:32 
GeneralRe: Control arrays in C# Pin
OmicronTheta22-Dec-06 0:35
OmicronTheta22-Dec-06 0:35 
GeneralRe: Control arrays in C# Pin
Luis Alonso Ramos22-Dec-06 12:08
Luis Alonso Ramos22-Dec-06 12:08 
AnswerRe: dataset in c# Pin
Mairaaj Khan17-Dec-06 21:10
professionalMairaaj Khan17-Dec-06 21:10 
GeneralRe: datahandler in c# Pin
Fuhrer17-Dec-06 21:19
Fuhrer17-Dec-06 21:19 
Questionpublish problem with C# express 2005 Pin
Argus217-Dec-06 10:29
Argus217-Dec-06 10:29 
AnswerRe: publish problem with C# express 2005 Pin
qingfengliuyue22-Apr-09 21:17
qingfengliuyue22-Apr-09 21:17 
Questionabout arraylist Pin
loscarlitos17-Dec-06 9:33
loscarlitos17-Dec-06 9:33 
AnswerRe: about arraylist Pin
Pradipta Basu17-Dec-06 9:53
Pradipta Basu17-Dec-06 9:53 
GeneralRe: about arraylist Pin
loscarlitos17-Dec-06 10:06
loscarlitos17-Dec-06 10:06 
GeneralRe: about arraylist Pin
Larantz17-Dec-06 10:16
Larantz17-Dec-06 10:16 
AnswerRe: about arraylist Pin
DavidNohejl17-Dec-06 10:40
DavidNohejl17-Dec-06 10:40 

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.