Esempio n. 1
0
 internal static IEnumerable<INetCfgBindingPath> All(IEnumNetCfgBindingPath penum) {
     int hr;
     INetCfgBindingPath one;
     uint celtFetched;
     while (0 == (hr = penum.Next(1, out one, out celtFetched)) && celtFetched == 1) {
         yield return one;
     }
 }
Esempio n. 2
0
            internal static IEnumerable <INetCfgBindingPath> All(IEnumNetCfgBindingPath penum)
            {
                int hr;
                INetCfgBindingPath one;
                uint celtFetched;

                while (0 == (hr = penum.Next(1, out one, out celtFetched)) && celtFetched == 1)
                {
                    yield return(one);
                }
            }
Esempio n. 3
0
        public static INetCfgBindingPath GetNextBindingPath(this IEnumNetCfgBindingPath instance)
        {
            object rawBinding;
            int    fetched;

            if (0 != instance.Next(1, out rawBinding, out fetched))
            {
                return(null);
            }

            if (fetched < 1)
            {
                return(null);
            }

            return(rawBinding as INetCfgBindingPath);
        }