Re: Structure Assignment
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 05/30/04
- Next message: Tony: "Re: TcpListener or Winsock.dll ???"
- Previous message: Hal: "How to create a dockable controlbar for Winforms in VB.Net?"
- In reply to: Vadim Rapp: "Structure Assignment"
- Messages sorted by: [ date ] [ thread ]
Date: 30 May 2004 18:50:07 +0200
* "Vadim Rapp" <vr@myrealbox.nospam.com> scripsit:
> Is there a way to assign a structure from the result of
> <structure>.ToString in one statement?
>
>
> For instance, if such function existed, it might look like this:
>
> Me.Size = OurFunction(Me.Size.Tostring)
There is no general way to do that. You can look if the type has a
'Parse' method and then use this method to construct an object of the
type from the data contained in the string.
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
- Next message: Tony: "Re: TcpListener or Winsock.dll ???"
- Previous message: Hal: "How to create a dockable controlbar for Winforms in VB.Net?"
- In reply to: Vadim Rapp: "Structure Assignment"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|