/// <summary>
        /// Gets a list of all types and nested types
        /// </summary>
        /// <param name="types">A list of types</param>
        public static IEnumerable <TypeDef> Types(IEnumerable <TypeDef> types)
        {
            var helper = new AllTypesHelper();

            helper.visited = new Dictionary <TypeDef, bool>();
            return(helper.GetTypes(types));
        }
Example #2
0
 void InitializeTypeEnumerator()
 {
     if (typeEnumerator != null)
     {
         typeEnumerator.Dispose();
         typeEnumerator = null;
     }
     typeEnumerator = (includeNestedTypes ? AllTypesHelper.Types(rootTypes) : rootTypes).GetEnumerator();
 }
Example #3
0
 /// <summary>
 /// Gets all the types (including nested types) present in this module
 /// </summary>
 public IEnumerable <TypeDef> GetTypes()
 {
     return(AllTypesHelper.Types(Types));
 }
		/// <summary>
		/// Gets a list of all types and nested types
		/// </summary>
		/// <param name="types">A list of types</param>
		public static IEnumerable<TypeDef> Types(IEnumerable<TypeDef> types) {
			var helper = new AllTypesHelper();
			helper.visited = new Dictionary<TypeDef, bool>();
			return helper.GetTypes(types);
		}