Piccolo.NET

PUtil.AddFrameworkSurrogate Method 

Adds a surrogate to the framework surrogate selector.

public static void AddFrameworkSurrogate(
   Type type,
   StreamingContext context,
   ISerializationSurrogate surrogate
);

Parameters

type
The Type for which the surrogate is required.
context
The context-specific data.
surrogate
The surrogate to call for this type.

Remarks

Surrogates that are added in this way will be used by the piccolo framework for cloning operations. For example, if several custom nodes reference a type that is not serializable, you might want to add a surrogate here for that type. Alternatively, you could override GetObjectData in each custom node and specify how to serialize the type there.

See Also

PUtil Class | UMD.HCIL.Piccolo.Util Namespace


Web Accessibility