src/Inflatable/BaseClasses/MappingBaseClass.cs
/// <summary>
/// Sets a property as a map type.
/// </summary>
/// <typeparam name="TDataType">The type of the data type.</typeparam>
/// <param name="expression">Expression pointing to the property</param>
/// <returns>The map object</returns>
/// <exception cref="ArgumentNullException">expression</exception>
Sets a property as a map type.
Sets a property as a map type .
public Map<TClassType, TDataType> Map<TDataType>(System.Linq.Expressions.Expression<Func<TClassType, TDataType>> expression)
            where TDataType : class
        {
            if (expression is null)
                throw new ArgumentNullException(nameof(expression));
            var ReturnValue = new Map<TClassType, TDataType>(expression, this);
            MapProperties.Add(ReturnValue);
            return ReturnValue;
        }
public Map < TClassType , TDataType > Map < TDataType > ( System . Linq . Expressions . Expression < Func < TClassType , TDataType > > expression ) where TDataType : class { if ( expression is null ) throw new ArgumentNullException ( nameof ( expression ) ) ; var ReturnValue = new Map < TClassType , TDataType > ( expression , this ) ; MapProperties . Add ( ReturnValue ) ; return ReturnValue ; }
Sets a property as a map type.
Sets a property as a map type .
The map object
The map object
None
expression
System.Linq.Expressions.Expression<Func<TClassType, TDataType>>
Expression pointing to the property
Expression pointing to the property
typeparam
The type of the data type.
The type of the data type .