Exemplo n.º 1
0
 /// <summary>
 /// Stores the specified accessible object properties in this object. Reference: <see cref="AAcc.Find"/>.
 /// </summary>
 public Finder(string role = null,
               [ParamString(PSFormat.AWildex)] string name = null,
               string prop = null, AFFlags flags = 0, Func <AAcc, bool> also = null, int skip = 0, string navig = null)
 {
     _role  = role;
     _name  = name;
     _prop  = prop;
     _flags = flags;
     _skip  = skip;
     _navig = navig;
     if (also != null)
     {
         _also = (Cpp.Cpp_Acc ca) => also(new AAcc(ca)) ? 1 : 0;
     }
 }
Exemplo n.º 2
0
            char           resultProp;   //AAcc.Finder.RProp

            public Cpp_AccParams(string role, string name, string prop, AFFlags flags, int skip, char resultProp) : this()
            {
                if (role != null)
                {
                    _role = role; _roleLength = role.Length;
                }
                if (name != null)
                {
                    _name = name; _nameLength = name.Length;
                }
                if (prop != null)
                {
                    _prop = prop; _propLength = prop.Length;
                }
                this.flags      = flags;
                this.skip       = skip;
                this.resultProp = resultProp;
            }