S
Sheikko
C# CSharp Reset Struct Class Memory
Hi,
I have a class, cerated like a struc for some reasons, and I want to
reset all values in it.
public class MyClass
{
public byte Channel;
public byte SatelliteID;
public byte SyncFlags;
public byte PhaseErrorCount;
}
After filling the class with some values, I want to reset all values
to the default, like the first time it was created.
I can do this filling every parameter, but I have some classes with a
lot of parameteres.
there is a way to reset this class? For example clear the memory
occupied by the class.
I know that I can make assigning a NULL to the class and recreate it,
but I search another way.
THank you very much
Hi,
I have a class, cerated like a struc for some reasons, and I want to
reset all values in it.
public class MyClass
{
public byte Channel;
public byte SatelliteID;
public byte SyncFlags;
public byte PhaseErrorCount;
}
After filling the class with some values, I want to reset all values
to the default, like the first time it was created.
I can do this filling every parameter, but I have some classes with a
lot of parameteres.
there is a way to reset this class? For example clear the memory
occupied by the class.
I know that I can make assigning a NULL to the class and recreate it,
but I search another way.
THank you very much