/// <summary>Initializes a new instance of the <see cref="CSharpGeneratorSettings"/> class.</summary>
        public CSharpGeneratorSettings()
        {
            DateType     = "DateTime";
            DateTimeType = "DateTime";
            TimeType     = "TimeSpan";
            TimeSpanType = "TimeSpan";

            ArrayType      = "ObservableCollection";
            DictionaryType = "Dictionary";

            RequiredPropertiesMustBeDefined = true;
            ClassStyle = CSharpClassStyle.Inpc;

            PropertyNameGenerator = new CSharpPropertyNameGenerator();
        }
Esempio n. 2
0
        /// <summary>Initializes a new instance of the <see cref="CSharpGeneratorSettings"/> class.</summary>
        public CSharpGeneratorSettings()
        {
            DateType     = "System.DateTime";
            DateTimeType = "System.DateTime";
            TimeType     = "System.TimeSpan";
            TimeSpanType = "System.TimeSpan";

            ArrayType      = "System.Collections.ObjectModel.ObservableCollection";
            DictionaryType = "System.Collections.Generic.Dictionary";

            RequiredPropertiesMustBeDefined = true;
            GenerateDataAnnotations         = true;
            ClassStyle = CSharpClassStyle.Inpc;

            PropertyNameGenerator = new CSharpPropertyNameGenerator();
            TemplateFactory       = new DefaultTemplateFactory();
        }