Hi I have a struct in my form, and I need to pass a reference/handle to it to a separate class, which is ok with the simple "ref" keyword. Now, how do I store this ref to a struct in the class (as a member variable)? Is this possible? I hope so...
pseudorandom21
166
Practically a Posting Shark
Recommended Answers
Jump to Postsimple, just create a variable with the struct inside class...
struct MYStruct
{}
class MyClass
{
MYStruct instanceMyStruct; // create a property if you want to..
}
All 4 Replies
arunkumars
14
Junior Poster
pseudorandom21
166
Practically a Posting Shark
arunkumars
14
Junior Poster
pseudorandom21
166
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.