Catel.Fody.Configuration.Configuration C# (CSharp) Method

Configuration() public method

public Configuration ( System.Xml.Linq.XElement config ) : System.Xml.Linq
config System.Xml.Linq.XElement
return System.Xml.Linq
        public Configuration(XElement config)
        {
            WeaveProperties = true;
            WeaveExposedProperties = true;
            WeaveCalculatedProperties = true;
            WeaveArguments = true;
            WeaveLogging = true;
            GenerateXmlSchemas = false;

            if (config == null)
            {
                return;
            }

            config.ReadBool("WeaveProperties", value => WeaveProperties = value);
            config.ReadBool("WeaveExposedProperties", value => WeaveExposedProperties = value);
            config.ReadBool("WeaveCalculatedProperties", value => WeaveCalculatedProperties = value);
            config.ReadBool("WeaveArguments", value => WeaveArguments = value);
            config.ReadBool("WeaveLogging", value => WeaveLogging = value);
            config.ReadBool("GenerateXmlSchemas", value => GenerateXmlSchemas = value);
        }
Configuration