المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Double class problem



C# Programming
09-06-2009, 05:42 AM
hi,
Lets say i have a class named 'MyClass'. This class contains a field, 'Key', that behaves like a PK for all of the class instances, means that only one instance can have the value X for this 'Key' field.

Now i need to serialize this class and transfer it, but if the other side already has a 'MyClass' instance with the same 'Key' value i get two instances contains the same 'Key' field value... Problem.

ideas?

thanks http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif