Skip to content

Methods_T_CodeJam_Mapping_MappingSchema

Andrew Koryavchenko edited this page Jul 4, 2017 · 3 revisions

MappingSchema Methods

The MappingSchema type exposes the following members.

Methods

 

Name Description
Public method AddMetadataReader Adds metadata reader.
Public method AddScalarType Adds scalar type and its default value.
Public method ChangeType Returns an object of a specified type whose value is equivalent to a specified object.
Public method ChangeTypeTo(T) Returns an object of a specified type whose value is equivalent to a specified object.
Public method EnumToValue Converts enum to its map value.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAttribute(T)(MemberInfo, Boolean) Returns custom attribute applied to provided type member.
Public method GetAttribute(T)(Type, Boolean) Returns custom attribute applied to provided type.
Public method GetAttribute(T)(MemberInfo, Func(T, String), Boolean) Returns custom attribute applied to provided type member.
Public method GetAttribute(T)(Type, Func(T, String), Boolean) Returns custom attribute applied to provided type.
Public method GetAttributes(T)(MemberInfo, Boolean) Returns custom attributes applied to provided type member.
Public method GetAttributes(T)(Type, Boolean) Returns custom attributes applied to provided type.
Public method GetAttributes(T)(MemberInfo, Func(T, String), Boolean) Returns custom attributes applied to provided type member.
Public method GetAttributes(T)(Type, Func(T, String), Boolean) Returns custom attributes applied to provided type.
Public method GetConverter(TFrom, TTo) Returns converter from a value of type TFrom to TTo.
Public method GetConvertExpression(Type, Type, Boolean, Boolean) Returns an expression that converts a value of type from to to.
Public method GetConvertExpression(TFrom, TTo)() Returns an expression that converts a value of type TFrom to TTo.
Public method GetDefaultValue Gets default value for provided Type.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetMapValues Returns mapping values for provided enum type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsScalarType Returns true if provided type is considered as a scalar type.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetConverter(TFrom, TTo) Adds a function expression that converts a value of type fromType to toType.
Public method SetConvertExpression(Type, Type, LambdaExpression, Boolean) Adds an expression that converts a value of type fromType to toType.
Public method SetConvertExpression(TFrom, TTo)(Expression(Func(TFrom, TTo)), Boolean) Adds an expression that converts a value of type fromType to toType.
Public method SetConvertExpression(TFrom, TTo)(Expression(Func(TFrom, TTo)), Expression(Func(TFrom, TTo))) Adds an expression that converts a value of type fromType to toType.
Public method SetCultureInfo Initializes culture specific converters.
Public method SetDefaultValue Sets default value for provided Type.
Public method SetScalarType Sets an scalar type indicator scalar for provided type.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TryGetConvertExpression Returns an expression that converts a value of type TFrom to TTo or null.
  Back to Top

See Also

Reference

MappingSchema Class
CodeJam.Mapping Namespace

Clone this wiki locally