コード例 #1
0
ファイル: Version.cs プロジェクト: sgissinger/JabberNet-2010
        /// <summary>
        /// Get all of the versioned classes currently in the working set.
        /// </summary>
        /// <returns></returns>
        public static SourceVersionCollection GetVersion()
        {
            SourceVersionCollection tv = new SourceVersionCollection();

            Assembly[]             assems = AppDomain.CurrentDomain.GetAssemblies();
            SourceVersionAttribute sta;

            foreach (Assembly a in assems)
            {
                Type[] ts = a.GetTypes();
                foreach (Type t in ts)
                {
                    sta = GetVersion(t);
                    if (sta != null)
                    {
                        tv.Add(t.FullName, sta);
                    }
                }
            }
            return(tv);
        }
コード例 #2
0
ファイル: Version.cs プロジェクト: sq5gvm/JabberNet-2010
 /// <summary>
 /// Get all of the versioned classes currently in the working set.
 /// </summary>
 /// <returns></returns>
 public static SourceVersionCollection GetVersion()
 {
     SourceVersionCollection tv = new SourceVersionCollection();
     Assembly[] assems = AppDomain.CurrentDomain.GetAssemblies();
     SourceVersionAttribute sta;
     foreach (Assembly a in assems)
     {
         Type[] ts = a.GetTypes();
         foreach (Type t in ts)
         {
             sta = GetVersion(t);
             if (sta != null)
             {
                 tv.Add(t.FullName, sta);
             }
         }
     }
     return tv;
 }