Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
 void InitializeTypeEnumerator()
 {
     if (typeEnumerator != null)
     {
         typeEnumerator.Dispose();
         typeEnumerator = null;
     }
     typeEnumerator = (includeNestedTypes ? AllTypesHelper.Types(rootTypes) : rootTypes).GetEnumerator();
 }
Ejemplo n.º 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);
		}