Need to define the size constant of an array of structure during run time

Discussion in 'ASP .Net' started by Valli, Apr 30, 2009.

  1. Valli

    Valli Guest

    Hi,

    <StructLayout(LayoutKind.Sequential, pack:=1)> Friend Structure
    MarketDepthArrayMessage

    <MarshalAs(UnmanagedType.ByValArray, sizeconst:=5)> _

    Friend MarketDepthArrayForSell As Integer()

    End Structure

    This is a strcuture that I have created which contains Integer array. The
    integer array size is defined to contain 5 elements in the design time.

    Is there any possibility to define the size constant during run time ? Also
    the size const can vary during the run time itself...


    --
    Regards
    Valli
    Valli, Apr 30, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    3,297
    Oliver Wong
    Apr 26, 2006
  2. news.hku.hk
    Replies:
    7
    Views:
    11,237
    Jeff Schwab
    Apr 25, 2004
  3. Christopher M. Lusardi
    Replies:
    1
    Views:
    4,086
  4. Replies:
    13
    Views:
    12,920
    Kai-Uwe Bux
    Jan 22, 2007
  5. Fredxx
    Replies:
    3
    Views:
    643
    Martin Thompson
    Jul 15, 2009
Loading...

Share This Page