コード例 #1
0
        public RuntimeDelegateArgument(string name, Type type, ArgumentDirection direction, DelegateArgument boundArgument)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw Microsoft.CoreWf.Internals.FxTrace.Exception.ArgumentNullOrEmpty("name");
            }

            if (type == null)
            {
                throw Microsoft.CoreWf.Internals.FxTrace.Exception.ArgumentNull("type");
            }

            ArgumentDirectionHelper.Validate(direction, "direction");

            if (boundArgument != null)
            {
                // Validations that the bound argument matches are done
                // in CacheMetadata for ActivityDelegate.

                boundArgument.Bind(this);
            }

            this.Name          = name;
            this.Type          = type;
            this.Direction     = direction;
            this.BoundArgument = boundArgument;
        }
コード例 #2
0
ファイル: RuntimeArgument.cs プロジェクト: jimitndiaye/corewf
        public RuntimeArgument(string name, Type argumentType, ArgumentDirection direction, bool isRequired, List <string> overloadGroupNames)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw Microsoft.CoreWf.Internals.FxTrace.Exception.ArgumentNullOrEmpty("name");
            }

            if (argumentType == null)
            {
                throw Microsoft.CoreWf.Internals.FxTrace.Exception.ArgumentNull("argumentType");
            }

            ArgumentDirectionHelper.Validate(direction, "direction");

            _name               = name;
            _type               = argumentType;
            this.Direction      = direction;
            this.IsRequired     = isRequired;
            _overloadGroupNames = overloadGroupNames;
        }
コード例 #3
0
 public static bool IsOut(Argument argument)
 {
     return(ArgumentDirectionHelper.IsOut(argument.Direction));
 }