Share via


SerializationRecord.TypeNameMatches(Type) Method

Definition

Compares the type name read from the payload against the specified type.

public:
 bool TypeNameMatches(Type ^ type);
public bool TypeNameMatches (Type type);
member this.TypeNameMatches : Type -> bool
Public Function TypeNameMatches (type As Type) As Boolean

Parameters

type
Type

The type to compare against.

Returns

true if the serialized type name match provided type; otherwise, false.

Exceptions

type is null.

Remarks

This method ignores assembly names.

This method does NOT take into account member names or their types.

Applies to