示例#1
0
        public BranchParameter(ParameterType parameterType, ICode code, int indexInCode, int[] branchIndexesInCode, int branchOffsetInCode, ISearchParameterLocator searchParameterLocator)
        {
            if (code == null)
            {
                throw new ArgumentNullException("code");
            }

            this.parameterType          = parameterType;
            this.code                   = code;
            this.indexInCode            = indexInCode;
            this.branchIndexesInCode    = branchIndexesInCode;
            this.branchOffsetInCode     = branchOffsetInCode;
            this.searchParameterLocator = searchParameterLocator;
            this.converter              = new AddressValueConverter();
        }
示例#2
0
        public CodeParameter(ParameterType parameterType, ICode code, int indexInCode, IParameterValueConverter <InternalRepresentation, HumanRepresentation> converter)
        {
            if (code == null)
            {
                throw new ArgumentNullException("code");
            }

            if (converter == null)
            {
                throw new ArgumentNullException("converter");
            }

            this.parameterType = parameterType;
            this.code          = code;
            this.indexInCode   = indexInCode;
            this.converter     = converter;
        }