Exemplo n.º 1
0
 public DefaultRazorParserOptionsFeature(bool designTime, RazorLanguageVersion version)
 {
     _designTime = designTime;
     _version    = version;
 }
Exemplo n.º 2
0
        public DefaultRazorParserOptions(DirectiveDescriptor[] directives, bool designTime, bool parseLeadingDirectives, RazorLanguageVersion version)
        {
            if (directives == null)
            {
                throw new ArgumentNullException(nameof(directives));
            }

            Directives             = directives;
            DesignTime             = designTime;
            ParseLeadingDirectives = parseLeadingDirectives;
            Version      = version;
            FeatureFlags = RazorParserFeatureFlags.Create(Version);
        }