ServiceClientGenerator.GeneratorDriver.IsExceptionPresentInParentModel C# (CSharp) Method

IsExceptionPresentInParentModel() static private method

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

            return false;
        }