コード例 #1
0
ファイル: JJar.cs プロジェクト: wangchengqun/Cs2Java
        public static IEnumerable <JClassRef> DescendantsAndSelf(this JClassRef ce)
        {
            yield return(ce);

            foreach (var ce2 in ce.Descendants())
            {
                yield return(ce2);
            }
        }
コード例 #2
0
ファイル: JJar.cs プロジェクト: wangchengqun/Cs2Java
        public static IEnumerable <JClassRef> Descendants(this JClassRef ce)
        {
            foreach (var ce2 in ce.Children())
            {
                yield return(ce2);

                foreach (var ce3 in ce2.Descendants())
                {
                    yield return(ce3);
                }
            }
        }
コード例 #3
0
ファイル: JJar.cs プロジェクト: wangchengqun/Cs2Java
 public static IEnumerable <JClassRef> Children(this JClassRef ce)
 {
     if (ce.GenericArguments != null)
     {
         foreach (var ce2 in ce.GenericArguments)
         {
             yield return(ce2);
         }
     }
     if (ce.ArrayItemType != null)
     {
         yield return(ce.ArrayItemType);
     }
 }