Click or drag to resize
FastSerializerSurrogateSelectorGetSurrogate Method
Finds the surrogate that represents the specified object's type, starting with the specified surrogate selector for the specified serialization context.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public ISerializationSurrogate GetSurrogate(
	Type type,
	StreamingContext context,
	out ISurrogateSelector selector
)

Parameters

type
Type: SystemType
The Type of object (class) that needs a surrogate.
context
Type: System.Runtime.SerializationStreamingContext
The source or destination context for the current serialization.
selector
Type: System.Runtime.SerializationISurrogateSelector
When this method returns, contains a ISurrogateSelector that holds a reference to the surrogate selector where the appropriate surrogate was found. This parameter is passed uninitialized.

Return Value

Type: ISerializationSurrogate
The appropriate surrogate for the given type in the given context.

Implements

ISurrogateSelectorGetSurrogate(Type, StreamingContext, ISurrogateSelector)
Exceptions
ExceptionCondition
SecurityExceptionThe caller does not have the required permission.
See Also