Beispiel #1
0
        public IDictionary <string, LocationInfo> GatherMappableVariables()
        {
            Dictionary <string, LocationInfo> dictionary = null;

            if ((this.mappableLocations != null) && (this.mappableLocations.Count > 0))
            {
                dictionary = new Dictionary <string, LocationInfo>(this.mappableLocations.Count);
                for (int i = 0; i < this.mappableLocations.Count; i++)
                {
                    MappableLocation location = this.mappableLocations[i];
                    dictionary.Add(location.MappingKeyName, new LocationInfo(location.Name, location.OwnerDisplayName, location.Location.Value));
                }
            }
            return(dictionary);
        }
        public IDictionary <string, LocationInfo> GatherMappableVariables()
        {
            Dictionary <string, LocationInfo> result = null;

            if (this.mappableLocations != null && this.mappableLocations.Count > 0)
            {
                result = new Dictionary <string, LocationInfo>(this.mappableLocations.Count);
                for (int locationIndex = 0; locationIndex < this.mappableLocations.Count; locationIndex++)
                {
                    MappableLocation mappableLocation = this.mappableLocations[locationIndex];
                    result.Add(mappableLocation.MappingKeyName, new LocationInfo(mappableLocation.Name, mappableLocation.OwnerDisplayName, mappableLocation.Location.Value));
                }
            }

            return(result);
        }