/// <summary> /// Initializes a new instance of the <see cref="MemberMap"/> class. /// </summary> /// <param name="key">The key.</param> /// <param name="memberName">Name of the member.</param> /// <param name="memberGetter">The member getter.</param> /// <param name="memberSetter">The member setter.</param> /// <param name="persistNull">if set to <c>true</c> [persist nulls].</param> /// <param name="valueType">Type of the value.</param> public ValueTypeMemberMap(string key, string memberName, Func<object, object> memberGetter, Action<object, object> memberSetter, bool persistNull, ValueTypeBase valueType) : base(key, memberName, memberGetter, memberSetter, persistNull) { if (valueType == null) throw new ArgumentNullException("valueType"); this.ValueType = valueType; }
/// <summary> /// Initializes a new instance of the <see cref="CollectionValueType"/> class. /// </summary> /// <param name="collectionType">Type of the collection.</param> /// <param name="elementValueType">Type of the element value.</param> public CollectionValueType(ICollectionType collectionType, ValueTypeBase elementValueType) : base(collectionType.GetCollectionType(elementValueType.Type)) { if (collectionType == null) throw new ArgumentNullException("collectionType"); if (elementValueType == null) throw new ArgumentNullException("elementValueType"); this.CollectionType = collectionType; this.ElementValueType = elementValueType; }