Exemplo n.º 1
0
        private void ConfigureMetaDataDetails(string metaDataDetails, MetaDataSettings metaDataSettings)
        {
            var  metaDatas = metaDataDetails.Split(",");
            Type MDType    = typeof(MetaDataSettings);

            foreach (string md in metaDatas)
            {
                string[] eachEntry = md.Split("=");
                if (eachEntry != null && eachEntry.Length > 1)
                {
                    string metadataField = eachEntry[0].Trim();
                    bool   metadataVal   = eachEntry[1].Trim().Equals(bool.TrueString, StringComparison.OrdinalIgnoreCase) ? true : false;
                    MDType.GetField(metadataField)?.SetValue(metaDataSettings, metadataVal);
                }
            }
        }
Exemplo n.º 2
0
 public AnalyzerConfiguration(string language)
 {
     Language         = language;
     ExportSettings   = new ExportSettings();
     MetaDataSettings = new MetaDataSettings();
 }