NameInvariantSurrogateSelectorGetSurrogate Method
Finds the surrogate that represents the specified object's type, starting with the specified surrogate selector for the specified serialization context.
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
[SecurityCriticalAttribute]
public ISerializationSurrogate? GetSurrogate(
Type type,
StreamingContext context,
out ISurrogateSelector selector
)
<SecurityCriticalAttribute>
Public Function GetSurrogate (
type As Type,
context As StreamingContext,
<OutAttribute> ByRef selector As ISurrogateSelector
) As ISerializationSurrogate
public:
[SecurityCriticalAttribute]
virtual ISerializationSurrogate^ GetSurrogate(
Type^ type,
StreamingContext context,
[OutAttribute] ISurrogateSelector^% selector
) sealed
[<SecurityCriticalAttribute>]
abstract GetSurrogate :
type : Type *
context : StreamingContext *
selector : ISurrogateSelector byref -> ISerializationSurrogate
[<SecurityCriticalAttribute>]
override GetSurrogate :
type : Type *
context : StreamingContext *
selector : ISurrogateSelector byref -> ISerializationSurrogate
- type Type
- The Type of object that needs a surrogate.
- context StreamingContext
- The source or destination context for the current serialization.
- selector ISurrogateSelector
- When this method returns, contains a ISurrogateSelector that holds a reference to the surrogate selector where the appropriate surrogate was found.
ISerializationSurrogate
The appropriate surrogate for the given type in the given context.
ISurrogateSelectorGetSurrogate(Type, StreamingContext, ISurrogateSelector)