Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <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;
 }