Add Configuration API
See original GitHub issueExtendedXmlSerializer should have a configuration API that allows users to setup the configuration of the serializer and then instantiate it accordingly. From https://github.com/wojtpl2/ExtendedXmlSerializer/issues/20#issuecomment-266399371:
//Without configuratino
var serializer = new ExtendedXmlSerializer();
// with configuration
var serializer = new ExtendedXmlSerializer(config);
// or from configuration
var serializer= config.CreateSerializer();
In configuration you will be able to configure all settings:
for example:
ExtendedXmlSerializer.Initialize(cfg =>{
cfg.ConfigType<OtherClass>()
.Property(p=>p.Id).ObjectReference().AsAttribute()
.Property(p=>p.Password).Encrypt()
.Property(p=>p.UserName).ChangeName("User").Order(1)
.AddExtension(AttachedPropertyToOtherClass);
cfg.UseAutoProperties();
cfg.UseNamespaces();
cfg.AddExtension(AttachedPropertyToAllTypeExtension);
});
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Creating an API configuration
Select Settings > API Configuration. You can view a list of existing API configurations, or search by name. You can use the arrow...
Read more >How to Use the Configuration API
Go to /login > Management > API Configuration. · Under API Accounts, click Add. · Enter a name to identify your new API...
Read more >Add an API manually using the Azure portal
Navigate to your API Management service in the Azure portal and select APIs from the menu. From the left menu, select + Add...
Read more >Creating an API config | API Gateway Documentation
Upload the API definition to create a new API config. Use the same command to create the new API config as you used...
Read more >CreateConfigurationProfile - AWS AppConfig
Creates a configuration profile, which is information that enables AWS AppConfig to access the configuration source. Valid configuration sources include the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes it is good result for this moment!
276us sounds better 😃