ServiceClientGenerator.GeneratorDriver.IsShapePresentInParentModel C# (CSharp) Method

IsShapePresentInParentModel() static private method

static private IsShapePresentInParentModel ( ServiceConfiguration config, string shapeName ) : bool
config ServiceConfiguration
shapeName string
return bool
        static bool IsShapePresentInParentModel(ServiceConfiguration config, string shapeName)
        {
            if (config.IsChildConfig)
            {
                // Check to see if the structure is present in a parent model
                if (config.ParentConfig.ServiceModel.Shapes.SingleOrDefault(
                    e => e.Name.Equals(shapeName)) != null)
                {
                    return true;
                }
            }

            return false;
        }