ServiceClientGenerator.GeneratorDriver.IsShapePresentInParentModel C# (CSharp) Метод

IsShapePresentInParentModel() статический приватный Метод

static private IsShapePresentInParentModel ( ServiceConfiguration config, string shapeName ) : bool
config ServiceConfiguration
shapeName string
Результат 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;
        }