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.12.0.0 (5.12.0)
Syntaxpublic ISerializationSurrogate GetSurrogate(
Type type,
StreamingContext context,
out ISurrogateSelector selector
)
Public Function GetSurrogate (
type As Type,
context As StreamingContext,
<OutAttribute> ByRef selector As ISurrogateSelector
) As ISerializationSurrogate
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)
ExceptionsException | Condition |
---|
SecurityException | The caller does not have the required permission. |
See Also