Navigation :
Introduction
FAQ
Setup, deployment & projects
Getting started
Examples
Catel.Core
Catel.MVVM
Catel.Fody
Catel.ReSharper
Tips & tricks
API reference
-
Catel.Cores
--
Catel
---
Catel.Android
---
Catel.ApiCop
---
Catel.Caching
---
Catel.Collections
---
Catel.ComponentModel
---
Catel.Configuration
---
Catel.Core
---
Catel.Data
---
Catel.ExceptionHandling
---
Catel.IO
---
Catel.IoC
---
Catel.Linq
---
Catel.Logging
---
Catel.Messaging
---
Catel.Pooling
---
Catel.Reflection
---
Catel.Runtime
----
Catel.Runtime.Serialization
-----
Catel.Runtime.Serialization.Binary
------ BinarySerializationContextInfo
------ BinarySerializationContextInfoFactory
------ BinarySerializer
------ IBinarySerializer
------ RedirectDeserializationBinder
------ RedirectTypeAttribute
-----
Catel.Runtime.Serialization.Xml
----- CacheInvalidatedEventArgs
----- ExcludeFromSerializationAttribute
----- IFieldSerializable
----- IObjectAdapter
----- IPropertySerializable
----- ISerializable
----- ISerializationConfiguration
----- ISerializationContext
----- ISerializationContextExtensions
----- ISerializationContextInfo
----- ISerializationContextInfoFactory
----- ISerializationManager
----- ISerializationManagerExtensions
----- ISerializer
----- ISerializerExtensions
----- ISerializerModifier
----- IncludeInSerializationAttribute
----- KeyValuePairSerializerModifier
----- MemberMetadata
----- MemberSerializationEventArgs
----- MemberValue
----- ObjectAdapter
----- SerializableKeyValuePair
----- SerializationConfiguration
----- SerializationContext
----- SerializationContextHelper
----- SerializationContextMode
----- SerializationEventArgs
----- SerializationFactory
----- SerializationInfoSerializationContextInfo
----- SerializationManager
----- SerializationMemberGroup
----- SerializationModelInfo
----- SerializationObject
----- SerializationScope
----- SerializeAsCollectionAttribute
----- SerializeEnumAsStringAttribute
----- SerializeUsingParseAndToStringAttribute
----- SerializerBase
----- SerializerModifierAttribute
----- SerializerModifierBase
---- ReferenceEqualityComparer
---- ReferenceInfo
---- ReferenceManager
---- RuntimeBindingRedirect
---
Catel.Scoping
---
Catel.Services
---
Catel.Test
---
Catel.Text
---
Catel.Threading
--- Argument
--- AsyncEventHandler
--- AsyncEventHandlerExtensions
--- ByteArrayExtensions
--- CatelEnvironment
--- CompositeFilter
--- CompositePredicate
--- CoreModule
--- DesignTimeCodeAttribute
--- DesignTimeHelper
--- DesignTimeInitializer
--- Disposable
--- DisposableToken
--- Enum
--- EnvironmentHelper
--- EventHandlerExtensions
--- ExceptionExtensions
--- ExceptionFactory
--- ExpressionHelper
--- FastDateTime
--- HashHelper
--- IBindableEnum
--- ICommandManagerExtensions
--- ICompositeFilter
--- IDisposableToken
--- IExecute
--- IExecuteWithObject
--- IFluent
--- INotifyPropertyChangedExtensions
--- IUniqueIdentifyable
--- IWeakAction
--- IWeakEventListener
--- IWeakFunc
--- IWeakReference
--- JsonExtensions
--- KnownPlatforms
--- LanguageHelper
--- MVVMModule
--- MustBeImplementedException
--- NotSupportedInPlatformException
--- ObjectHelper
--- ObjectToStringHelper
--- OpenInstanceActionHandler
--- OpenInstanceEventHandler
--- ParallelHelper
--- Platforms
--- ProcessExtensions
--- ProgressContext
--- ResourceHelper
--- SerializationJsonModule
--- StringExtensions
--- StringToObjectHelper
--- SupportedPlatforms
--- TagHelper
--- ThemeHelper
--- ThreadHelper
--- UniqueIdentifierHelper
--- UriExtensions
--- WeakAction
--- WeakActionBase
--- WeakEventListener
--- WeakFunc
--
Systems
-
Catel.MVVMs
-
Catel.Serialization.Jsons
RedirectTypeAttribute
Name
Value
Assembly
Catel.Core
Namespace
Catel.Runtime.Serialization.Binary
Available on
.NET Framework 4.5, .NET Framework 4.6
public class RedirectTypeAttribute : Attribute
Base types
Attribute
Attribute that can be used to redirect types to other types to be able to rename / move property types.
This attribute should be appended to the property definition. In case this attribute is used on a field or property, the NewAssemblyName and NewTypeName are mandatory. In all other cases, the type and assembly will be loaded automatically.
Constructors
RedirectTypeAttribute(string originalAssemblyName, string originalTypeName)
Initializes a new instance of the RedirectTypeAttribute class.
Parameters
Name
Description
originalAssemblyName
Original assembly location..
originalTypeName
Original type name.
Exceptions
Name
Description
ArgumentException
The originalAssemblyName isnull
or whitespace.
Properties
NewAssemblyName
Gets or sets the new assembly name.
Leave empty if the assembly name is unchanged.
NewTypeName
Gets or sets the new type name.
Leave empty if the type name is unchanged. List or Array types should be postfixed with a [[]].
OriginalAssemblyName
Gets the original assembly name.
OriginalType
Gets the original type.
OriginalTypeName
Gets the original type name.
List or Array types should be postfixed with a [[]].
TypeToLoad
Gets the new type that should be loaded.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion
Please enable JavaScript to view the comments powered by Disqus.