Question about Guid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roy

    #1

    Question about Guid

    Guid is a structure type. How can I add it to an ArrayList?
  • Mattias Sjögren

    #2
    Re: Question about Guid

    [color=blue]
    >Guid is a structure type. How can I add it to an ArrayList?[/color]

    The same way as any other variable.

    yourArrayList.A dd(yourGuid);

    Since Guid is a value type the value will be boxed.


    Mattias

    --
    Mattias Sjögren [C# MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    Working...