public IExplorerObject CreateInstanceByFullName(string FullName, ISerializableExplorerObjectCache cache) { if (cache.Contains(FullName)) { return(cache[FullName]); } MsSql2008SpatialGeographyExplorerGroupObject group = new MsSql2008SpatialGeographyExplorerGroupObject(); if (FullName.IndexOf(group.FullName) != 0 || FullName.Length < group.FullName.Length + 2) { return(null); } group = (MsSql2008SpatialGeographyExplorerGroupObject)((cache.Contains(group.FullName)) ? cache[group.FullName] : group); foreach (IExplorerObject exObject in group.ChildObjects) { if (exObject.FullName == FullName) { cache.Append(exObject); return(exObject); } } return(null); }
public IExplorerObject CreateInstanceByFullName(string FullName, ISerializableExplorerObjectCache cache) { if (cache.Contains(FullName)) { return(cache[FullName]); } if (this.FullName == FullName) { MsSql2008SpatialGeographyExplorerGroupObject exObject = new MsSql2008SpatialGeographyExplorerGroupObject(); cache.Append(exObject); return(exObject); } return(null); }