예제 #1
0
        internal PipelineProperty GetProperty(string propertyName)
        {
            if (properties == null)
            {
                properties = new Dictionary<string, PipelineProperty>(); // Property Name to Property object
            }

            PipelineProperty property;
            if (!properties.TryGetValue(propertyName, out property))
            {
                property = new PipelineProperty {Name = propertyName};
                properties.Add(propertyName, property);
            }
            return property;
        }
예제 #2
0
        internal PipelineProperty GetProperty(string propertyName)
        {
            if (properties == null)
            {
                properties = new Dictionary <string, PipelineProperty>(); // Property Name to Property object
            }

            PipelineProperty property;

            if (!properties.TryGetValue(propertyName, out property))
            {
                property = new PipelineProperty {
                    Name = propertyName
                };
                properties.Add(propertyName, property);
            }
            return(property);
        }