| Rich Noons 2004-04-28, 8:36 am |
| Hi,
I'm trying to implement a fact creator to test a .NET class,
I' think I've made the classes that I use serializable, but when I use the
fact creator but I get an error message saying
"The constructor to deserialize an object of type {namespace}.AnException
was not found".
I pass an xml document that is produced from our software to a dot net
object, so am I right in saying I could also provide a UI where the user
passes through information that populate the fact?
Any help would be useful.
Thanks
Rich
[Serializable]
internal class AnException : ApplicationException, ISerializable
{
public AnException(string Message) : base(Message)
{
.....;
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
// TODO: Add .GetObjectData implementation
}
}
[Serializable]
public class DataInfo: ISerializable
{
public DataInfo(XmlDocument XMLData) : base()
{
m_xmlData = XMLData;
}
.....
public void GetObjectData( SerializationInfo info, StreamingContext context)
{
// TODO: Add .GetObjectData implementation
}
}
|