private string GetUpdatedSectionGroupDeclarationXml(FactoryRecord factoryRecord, ConfigurationSectionGroup configSectionGroup) { if ((TargetFramework != null) && !configSectionGroup.ShouldSerializeSectionGroupInTargetVersion(TargetFramework)) return null; StringBuilder sb = new StringBuilder(); sb.Append('<'); sb.Append(KeywordSectiongroup); sb.Append(' '); AppendAttribute(sb, KeywordSectiongroupName, configSectionGroup.Name); string type = configSectionGroup.Type ?? factoryRecord.FactoryTypeName; if (TypeStringTransformerIsSet) type = TypeStringTransformer(type); AppendAttribute(sb, KeywordSectiongroupType, type); sb.Append('>'); return sb.ToString(); }
private string GetUpdatedSectionGroupDeclarationXml(FactoryRecord factoryRecord, ConfigurationSectionGroup configSectionGroup) { if (TargetFramework != null && !configSectionGroup.ShouldSerializeSectionGroupInTargetVersion(TargetFramework)) return null; StringBuilder sb = new StringBuilder(); sb.Append('<'); sb.Append(KEYWORD_SECTIONGROUP); sb.Append(' '); AppendAttribute(sb, KEYWORD_SECTIONGROUP_NAME, configSectionGroup.Name); string type = (configSectionGroup.Type != null) ? configSectionGroup.Type : factoryRecord.FactoryTypeName; if (TypeStringTransformerIsSet) type = TypeStringTransformer(type); AppendAttribute(sb, KEYWORD_SECTIONGROUP_TYPE, type); sb.Append('>'); return sb.ToString(); }
private string GetUpdatedSectionGroupDeclarationXml(FactoryRecord factoryRecord, ConfigurationSectionGroup configSectionGroup) { if ((base.TargetFramework != null) && !configSectionGroup.ShouldSerializeSectionGroupInTargetVersion(base.TargetFramework)) { return null; } StringBuilder sb = new StringBuilder(); sb.Append('<'); sb.Append("sectionGroup"); sb.Append(' '); this.AppendAttribute(sb, "name", configSectionGroup.Name); string arg = (configSectionGroup.Type != null) ? configSectionGroup.Type : factoryRecord.FactoryTypeName; if (base.TypeStringTransformerIsSet) { arg = base.TypeStringTransformer(arg); } this.AppendAttribute(sb, "type", arg); sb.Append('>'); return sb.ToString(); }