Пример #1
0
        private static void ThrowException(RequiredPropertyNotSetException inner)
        {
            string type     = string.Empty;
            string property = string.Empty;

            if (inner != null)
            {
                type     = inner.Type == null ? "" : inner.Type;
                property = inner.PropertyName == null ? "" : inner.PropertyName;
            }

            throw new RequiredPropertyNotFoundException(string.Format("Unable to find required properties in the default config or the registry ({0}.{1})", type, property), inner);
        }
        private static void ThrowException(RequiredPropertyNotSetException inner)
        {
            string type = string.Empty;
            string property = string.Empty;
            if (inner != null)
            {
                type = inner.Type == null ? "" : inner.Type;
                property = inner.PropertyName == null ? "" : inner.PropertyName;
            }

            throw new RequiredPropertyNotFoundException(string.Format("Unable to find required properties in the default config or the registry ({0}.{1})", type, property), inner);
        }