Click here to Skip to main content
15,887,415 members
Home / Discussions / C#
   

C#

 
QuestionAn array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 13:13
CaptainSeeSharp24-Oct-09 13:13 
AnswerRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 13:16
protectorChristian Graus24-Oct-09 13:16 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
CaptainSeeSharp24-Oct-09 13:30
CaptainSeeSharp24-Oct-09 13:30 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. PinPopular
Christian Graus24-Oct-09 14:12
protectorChristian Graus24-Oct-09 14:12 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Not Active24-Oct-09 15:47
mentorNot Active24-Oct-09 15:47 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 23:24
protectorChristian Graus24-Oct-09 23:24 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 14:42
protectorChristian Graus24-Oct-09 14:42 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 16:01
CaptainSeeSharp24-Oct-09 16:01 
I want to know if I can link Nodes of

struct Node
{
  unsafe { public Node* parentNode; }
}


Would the chain hold together? I want to articulate what goes on behind the scenes in the CLR.

//this class stays in memory, it does not get GC'd until the application terminates
class SomeClass
{
  Node[] nodeArray = new Node[2];
  Node[] otherNodeArray = new Node[1];
  
  void LinkEmUp()
  {
    unsafe
    {  
      nodeArray[0].parentNode = &nodeArray[1];
      otherNodeArray[0].parentNode = &nodeArray[0];
    }
  }
}


I don't want to here "just change Node to class and don't use pointers" because that is not what I am asking.


modified on Saturday, October 24, 2009 10:08 PM

GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 23:23
protectorChristian Graus24-Oct-09 23:23 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
miss YY25-Oct-09 23:33
miss YY25-Oct-09 23:33 
Questioncaptcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 5:17
yogesh_softworld12324-Oct-09 5:17 
AnswerRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 7:24
professionalAbhishek Sur24-Oct-09 7:24 
GeneralRe: captcha image from WebBrowser into a picturebox [modified] Pin
yogesh_softworld12324-Oct-09 7:33
yogesh_softworld12324-Oct-09 7:33 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 7:38
professionalAbhishek Sur24-Oct-09 7:38 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 8:15
yogesh_softworld12324-Oct-09 8:15 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 9:10
professionalAbhishek Sur24-Oct-09 9:10 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 9:39
yogesh_softworld12324-Oct-09 9:39 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Christian Graus24-Oct-09 10:18
protectorChristian Graus24-Oct-09 10:18 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 22:34
professionalAbhishek Sur24-Oct-09 22:34 
AnswerRe: captcha image from WebBrowser into a picturebox Pin
dan!sh 24-Oct-09 23:58
professional dan!sh 24-Oct-09 23:58 
Questioncolumn headers not showing Pin
Zap-Man24-Oct-09 4:45
Zap-Man24-Oct-09 4:45 
AnswerRe: column headers not showing Pin
Zap-Man24-Oct-09 4:54
Zap-Man24-Oct-09 4:54 
GeneralRe: column headers not showing Pin
Ravi Sant4-May-11 23:45
Ravi Sant4-May-11 23:45 
QuestionHow to convert Image to Byte and Byte to Image(to pass the image to another PC while working on Socket Programming )? Pin
CoderForEver24-Oct-09 2:46
CoderForEver24-Oct-09 2:46 
AnswerRe: How to convert Image to Byte and Byte to Image(to pass the image to another PC while working on Socket Programming )? Pin
vaghelabhavesh24-Oct-09 3:00
vaghelabhavesh24-Oct-09 3:00 

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.