Inheritance: SystemException
Esempio n. 1
0
 static private SerializationInfo SqlTypeExceptionSerialization(SerializationInfo si, StreamingContext sc) {
     if ((null != si) && (1 == si.MemberCount)) {
         string message = si.GetString("SqlTypeExceptionMessage"); // WebData 104331
         SqlTypeException fakeValue = new SqlTypeException(message);
         fakeValue.GetObjectData(si, sc);
     }
     return si;
 }
Esempio n. 2
0
 private static SerializationInfo SqlTypeExceptionSerialization(SerializationInfo si, StreamingContext sc)
 {
     if ((null != si) && (1 == si.MemberCount))
     {
         string           message   = si.GetString("SqlTypeExceptionMessage");
         SqlTypeException fakeValue = new SqlTypeException(message);
         fakeValue.GetObjectData(si, sc);
     }
     return(si);
 }