i want to declare a global linked list for a namespace in c#. i tried to extern the linked list but do not know the correct syntax. can any one tell me how to extern variables?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think the C# syntax for extern is much more limited, or even radically different, from the C++ world.
http://msdn.microsoft.com/en-US/library/e59b22c5(v=VS.80).aspx
.
Maybe what you really want to implement is a singleton or a static member of a class?
Then you can reference the above list as
in the rest of the code…