GetObjectData() protected méthode

Adds the underlying property of a wild card pattern to the serialization info.
this is used by ISerializable.GetObjectData() so that it can be changed by derived classes.
protected GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The serialization info.
context System.Runtime.Serialization.StreamingContext The streaming context.
Résultat void
 public void GetObjectData_Null_ThrowsArgumentNullException()
 {
     ExceptionAssert.CatchArgumentNullException
     (() =>
     {
         ISerializable obj = new WildcardPattern("*");
         obj.GetObjectData(null, default(StreamingContext));
     },
     "info");
 }