I'm not sure what are the benefits of implementing ICloneable,
my web site is trapping a strange error and I wonder if that might have something to do with it,
The error is: Unable to cast object of type 'X' to type 'Y'
Where X is one object and Y is a different object (does not make sense)
I'm convinced that this is not a casting error on my side since its working fine locally and I only get this error occasionally... don't know how to reproduce it...
My objects are all using [Serializable]
I think its happening in some cases when I'm loading objects back from cache or from the application state,
Also, this service class is being accessed as an instance (using a singleton) like this:
LanguageService.Instance.Get(resourceName, languageId, LanguageResourceType.String);
(this is generating the error)
And it is being called using another static class like this:
Resources.String("SomeString");
I would like to hear any suggestions or if you think there is something wrong here.
Thanks in advance.