/// <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); }
/// <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; }