private DotNetType FindType(DotNetQualifiedName name) { DotNetType type = Types.FirstOrDefault(x => x.Is(name) || x.Owns(name)); if (type == null) { return(null); } return(type.FindType(name)); }
/// <summary> /// Returns the selected type, whether it is the current type or one of its nested type descendents. Returns null if the type is not found. /// </summary> public DotNetType FindType(DotNetQualifiedName name) { if (this.Is(name)) { return(this); } DotNetType type = NestedTypes.FirstOrDefault(x => x.Is(name) || x.Owns(name)); if (type == null) { return(null); } return(type.FindType(name)); }