|
Guys,
I am taking some classes and I am trying to do assignm,ent in c#. I have a question. I have the asignment that must use the LInked Lists so I was wondering if c# has any think like Linked Lists in C++? Please advice and I will greately appreciate your comments.
Thank you and God bless you all for wonderful help!
|
|
|
|
|
Yeah, umm....surprise surprise, it's called LinkedList[^]
It's a generic so you can use it with whatever type you want.
Simon
|
|
|
|
|
There's a LinkedList class in .NET 2.0.
Kevin
|
|
|
|
|
There is such thing called Google that let's you to search. Have you tried it? There is also MSDN too.
|
|
|
|
|
sorry, but if google had it all, this forum will no longer be needed. google searches forums like this. If you have no answer to it better not to response. Noone is born nice and kind but kindness can be earned. Respect yourself and respect others.
|
|
|
|
|
nesfrank wrote: sorry, but if google had it all, this forum will no longer be needed.
I agree, Google does not have everything but it does have much information. You use documentation and books to learn about something and post on forum if you can't need to clarify some points or need more help.
nesfrank wrote: Respect yourself and respect others.
So why don't you respect us and do basic search and read documentation? Most of the questions asked at this forum can be answered by reading documentation and doing simple search. I guess some people are too lazy to do that.
|
|
|
|
|
thanks anyway. I appreacute any answer
|
|
|
|
|
But when the 4th hit for "C# linked list" is an article that shows why the generic linked list (at the end of the article) is better than a DIY list, and the 2nd hit for "C# linkedlist" is a howto on the ArrayList<> generic, posting a question like this shows you haven't put any effort into it.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
I do put efforts but I have limited english. all are different. I appreaciate any response but I don't appreciate offense
|
|
|
|
|
Hi!
I have a stdcall-DLL, that works as an API and offers me connection to a hardware-device using "open"/"close"-methodes, as well a "read"/"write"-methodes for accessing the device. These API-calls are wrapped by a C#-DLL, that encapsules the calls an offers some methods i need to use in my application.
The API´s "open"-method delivers a handle, that is used with the other functions to access the device.
This handle is stored in a private class-member for further use with the read-methodes.
My application/wrapper-DLL opens the connection, then reads something from the device everytime an external signal arrives at my software. When starting my app everything works fine for some hours or days, until nothing can be read from the DLL and an error occurs ssaying "invalid handle".
When trying to re-connect the device (API-calls "close" and "connect") the API tells me that the connection is already open and i cannot connect to the device. After restarting my software everything works fine again.
Because of this behaviour i changed the operation of my software:
Now the device is re-connected everytime i finished a read-operation.
This is because i thought that maybe the API might have a problem with a long-term connection.
Unfortunately i get the same problem again: After some hours/days i get an "invalid handle" again.
As the application should run 24/7 i need a way to stabilize this connection to the device.
Does anyone have an idea, where my problem might be?
Thanx a lot
Greetings
JH
|
|
|
|
|
I'm using VS 2008. How can I enable/disable ToolBar buttons please?
|
|
|
|
|
|
Hi all,
If I try and set some of the properties of a textbox for example, within the thread I receive the following error: cross-thread operation not valid. I understand why this is happening so my question ...
I would like to know if there is another way of setting / getting form control properties within a thread instead of making use of the BeginInvoke() method.
I.e:
public delegate void InvokeDelegate();
private void Invoke_Click(object sender, EventArgs e)
{
myTextBox.BeginInvoke(new InvokeDelegate(InvokeMethod));
}
public void InvokeMethod()
{
myTextBox.Text = "Executed the given delegate";
}
Many thanks in advance
Kind regards,
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
|
|
Glad to help you
|
|
|
|
|
hi everybody,
i would like how do you get the node's position (treeview)
thanks
jere
|
|
|
|
|
What do you mean position? Do you mean where it is in the tree, or it's pixel position on the screen?
|
|
|
|
|
when you create treeview you are node and i need position of each node position (x and y)
jere
|
|
|
|
|
Nope still no clearer. X and Y normally refers to co-ordinates, and this would suggest screen co-ordinates, but this entirely depends on what nodes are opened or closed at the time.
|
|
|
|
|
yes it's true the nodes can close or open. you think it's better to get the screen co-ordinates. how do you get the screen co-ordinate of nodes
jere
|
|
|
|
|
Each node has a Bounds property, which is the bounding rectangle of the node.
|
|
|
|
|
Direct answer, Great!
While (true) { Human.isLearnable = true; }
|
|
|
|
|
|
No problem. Glad to help.
|
|
|
|