Show / Hide Table of Contents

Class RegionAdapterMappings

Inheritance
System.Object
RegionAdapterMappings
MefRegionAdapterMappings
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class RegionAdapterMappings

Methods

View Source

GetMapping(Type)

Returns the adapter associated with the type provided.

Declaration
public IRegionAdapter GetMapping(Type controlType)
Parameters
Type Name Description
System.Type controlType

The type to obtain the IRegionAdapter mapped.

Returns
Type Description
IRegionAdapter

The IRegionAdapter mapped to the controlType.

Remarks

This class will look for a registered type for controlType and if there is not any, it will look for a registered type for any of its ancestors in the class hierarchy. If there is no registered type for controlType or any of its ancestors, an exception will be thrown.

Exceptions
Type Condition
System.Collections.Generic.KeyNotFoundException

When there is no registered type for controlType or any of its ancestors.

View Source

RegisterMapping(Type, IRegionAdapter)

Registers the mapping between a type and an adapter.

Declaration
public void RegisterMapping(Type controlType, IRegionAdapter adapter)
Parameters
Type Name Description
System.Type controlType

The type of the control.

IRegionAdapter adapter

The adapter to use with the controlType type.

Exceptions
Type Condition
System.ArgumentNullException

When any of controlType or adapter are null.

System.InvalidOperationException

If a mapping for controlType already exists.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX