System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection.RecurseFindValue C# (CSharp) Method

RecurseFindValue() private static method

Locates the value object to use for getting or setting a property.
private static RecurseFindValue ( DesignerOptionCollection options ) : object
options DesignerOptionCollection
return object
            private static object RecurseFindValue(DesignerOptionCollection options)
            {
                if (options._value != null)
                {
                    return options._value;
                }

                foreach (DesignerOptionCollection child in options)
                {
                    object value = RecurseFindValue(child);
                    if (value != null)
                    {
                        return value;
                    }
                }

                return null;
            }