Click here to Skip to main content
15,921,463 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can we select XML's root node with LINQ ? Pin
Mohammad Dayyan28-Jun-08 3:48
Mohammad Dayyan28-Jun-08 3:48 
Questioncrystal report problem Pin
Bhim Prakash Singh28-Jun-08 3:03
Bhim Prakash Singh28-Jun-08 3:03 
AnswerRe: crystal report problem Pin
Colin Angus Mackay28-Jun-08 3:22
Colin Angus Mackay28-Jun-08 3:22 
QuestionService and windows GUI interaction problem. Pin
007_Stu28-Jun-08 3:01
007_Stu28-Jun-08 3:01 
AnswerRe: Service and windows GUI interaction problem. Pin
Giorgi Dalakishvili28-Jun-08 10:51
mentorGiorgi Dalakishvili28-Jun-08 10:51 
QuestionSending email w/ authentication C# Pin
buzobbu28-Jun-08 2:23
buzobbu28-Jun-08 2:23 
QuestionMonitoring Clipboard using Windows Service Pin
Anindya Chatterjee28-Jun-08 1:48
Anindya Chatterjee28-Jun-08 1:48 
QuestionIndexing Generic Arrays Pin
DwR28-Jun-08 1:42
DwR28-Jun-08 1:42 
All,
I have encoded an object that contains a Generic array at it's heart. One of the uses I have for this is to store double[] arrays at each index point. I have done this rather than using multidimensional arrays as the class containing the generic array has additional functionality I need that multidimensional arrays don't provide.

Everything works but complications arise because the double[] arrays that get loaded into the generic array are not full, ie. they need to be updated on the fly. Because of the nested nature of the arrays I want to update I've realised that std indexing won't work. if anyone can offer some guidance on the best approach ere i'd appreciate it. Or, do I have no choice but to unload the array at each index point in order to update it?

A brief snippet of my code for guidance:

public class CircularQueue<t>;
{
private T[] QBuffer; // Generic Array

public T this[int Index] // Indexing code
{
get
{
if ( (Index < 0) || (Index >= QBuffer.Length) )
{
}
return QBuffer[Index];
}
set
{
T Item = value;
Insert(Item, Index);
}
} // End Index

...
}

Declaration:
protected CircularQueue<double[]> CustomData;
Usage:
CustomData.Initialize(SizeOfGenericArray); //Initialize
CustomData.Enqueue(IndexItem); //Add an item(double[])
CustomData[GenericArrayIndex][ItemIndex] = NewValue; //This fails!

So the indexing code I have is useful only for indexing the generic array. Indexing the nested arrays is more of a problem. Any help offered willl be greatly appreciated.


Regards,
Dave

Regards,
Dave

AnswerRe: Indexing Generic Arrays Pin
Guffa28-Jun-08 3:14
Guffa28-Jun-08 3:14 
QuestionWhat does this syntax mean? Pin
martin_hughes28-Jun-08 0:53
martin_hughes28-Jun-08 0:53 
AnswerRe: What does this syntax mean? Pin
User 665828-Jun-08 0:56
User 665828-Jun-08 0:56 
QuestionHow to Enable & Disable USB Drive Pin
Joe Rozario27-Jun-08 22:31
Joe Rozario27-Jun-08 22:31 
AnswerRe: How to Enable & Disable USB Drive Pin
leppie28-Jun-08 1:17
leppie28-Jun-08 1:17 
GeneralRe: How to Enable & Disable USB Drive Pin
Anthony Mushrow28-Jun-08 2:39
professionalAnthony Mushrow28-Jun-08 2:39 
AnswerRe: How to Enable & Disable USB Drive Pin
Paw Jershauge28-Jun-08 3:52
Paw Jershauge28-Jun-08 3:52 
AnswerRe: How to Enable & Disable USB Drive Pin
7sajjad8khna614-Sep-10 23:38
7sajjad8khna614-Sep-10 23:38 
QuestionSingle dataset to multiple Pin
ali zaidi27-Jun-08 22:29
ali zaidi27-Jun-08 22:29 
AnswerRe: Single dataset to multiple Pin
Abhijit Jana27-Jun-08 23:20
professionalAbhijit Jana27-Jun-08 23:20 
AnswerRe: Single dataset to multiple Pin
Christian Graus27-Jun-08 23:43
protectorChristian Graus27-Jun-08 23:43 
QuestionPrinting Data From a Windows Application Pin
jonhbt27-Jun-08 21:16
jonhbt27-Jun-08 21:16 
AnswerRe: Printing Data From a Windows Application Pin
wasimsharp27-Jun-08 23:08
wasimsharp27-Jun-08 23:08 
AnswerRe: Printing Data From a Windows Application Pin
Abhijit Jana27-Jun-08 23:19
professionalAbhijit Jana27-Jun-08 23:19 
Questionhow to print the tow rows from the datagrid in a single line.....while printing Pin
cse.vidhya27-Jun-08 20:55
cse.vidhya27-Jun-08 20:55 
AnswerRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
Christian Graus27-Jun-08 21:01
protectorChristian Graus27-Jun-08 21:01 
GeneralRe: how to print the tow rows from the datagrid in a single line.....while printing Pin
cse.vidhya27-Jun-08 21:05
cse.vidhya27-Jun-08 21:05 

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.