{"id":22640986,"url":"https://github.com/aliencube/configuration-value-converter","last_synced_at":"2025-07-26T11:41:06.696Z","repository":{"id":24349703,"uuid":"27747845","full_name":"aliencube/Configuration-Value-Converter","owner":"aliencube","description":"This provides configuration value converters for configuration sectionis from App.config or Web.config","archived":false,"fork":false,"pushed_at":"2016-06-16T03:30:39.000Z","size":1891,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T03:35:00.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aliencube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-09T03:31:43.000Z","updated_at":"2016-09-19T14:28:22.000Z","dependencies_parsed_at":"2022-08-22T18:00:48.082Z","dependency_job_id":null,"html_url":"https://github.com/aliencube/Configuration-Value-Converter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/aliencube/Configuration-Value-Converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FConfiguration-Value-Converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FConfiguration-Value-Converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FConfiguration-Value-Converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FConfiguration-Value-Converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliencube","download_url":"https://codeload.github.com/aliencube/Configuration-Value-Converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliencube%2FConfiguration-Value-Converter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267161456,"owners_count":24045474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T04:15:27.902Z","updated_at":"2025-07-26T11:41:06.660Z","avatar_url":"https://github.com/aliencube.png","language":"C#","readme":"# Configuration Value Converter #\n\n[![Build status](https://ci.appveyor.com/api/projects/status/g2jspuboqh7i7x5k/branch/dev?svg=true)](https://ci.appveyor.com/project/justinyoo/configuration-value-converter/branch/dev) | [![](https://img.shields.io/nuget/v/Aliencube.ConfigurationValueConverter.svg)](https://www.nuget.org/packages/Aliencube.ConfigurationValueConverter)\n\n**Configuration Value Converter (CVC)** provides configuration value converters for configuration sections from `App.config` or `Web.config`.\n\n\n## Getting Started ##\n\nThe following `App.config` sample can be found at [https://github.com/aliencube/Configuration-Value-Converter/blob/master/src/ConfigurationValueConverter.Configs/App.config](https://github.com/aliencube/Configuration-Value-Converter/blob/master/src/ConfigurationValueConverter.Configs/App.config)\n\n```xml\n\u003cconfiguration\u003e\n  \u003cconfigSections\u003e\n    \u003csection name=\"converterSettings\" \n             type=\"Aliencube.ConfigurationValueConverter.Configs.ConverterSettings, Aliencube.ConfigurationValueConverter.Configs\" requirePermission=\"false\" /\u003e\n  \u003c/configSections\u003e\n\n  \u003cconverterSettings\u003e\n    \u003cproduct status=\"active\" productIds=\"1,2,3\" types=\"ProductA|ProductC\" /\u003e\n  \u003c/converterSettings\u003e\n\u003c/configuration\u003e\n```\n\n\n## `CaseInsensitiveEnumConverter` ##\n\n```csharp\npublic class ProductElement : ConfigurationElement\n{\n  [ConfigurationProperty(\"status\", IsRequired = true)]\n  [TypeConverter(typeof(CaseInsensitiveEnumConverter\u003cProductStatus\u003e))]\n  public ProductStatus Status\n  {\n    get { return (ProductStatus)this[\"status\"]; }\n    set { this[\"status\"] = value; }\n  }\n}\n```\n\nIf the `TypeConverter` attribute class is declared with `CaseInsensitiveEnumConverter\u003cProductStatus\u003e` type, any value such as `ACTIVE`, `Active`, or `active` representing `ProductStatus.Active` is allowed into `App.config` or `Web.config`.\n\n\n## `CommaDelimitedListConverter` ##\n\n```csharp\npublic class ProductElement : ConfigurationElement\n{\n  [ConfigurationProperty(\"productIds\", IsRequired = true)]\n  [TypeConverter(typeof(CommaDelimitedListConverter\u003cint\u003e))]\n  public List\u003cint\u003e ProductIds\n  {\n    get { return (List\u003cint\u003e)this[\"productIds\"]; }\n    set { this[\"productIds\"] = value; }\n  }\n}\n```\n\nIf the `TypeConverter` attribute class is declared with `CommaDelimitedListConverter\u003cint\u003e` type, any value such as `1,2,3` can be converted to a `List\u003cint\u003e` instance containing `1`, `2` and `3`.\n\n\n## `PipeDelimitedFlaggedEnumConverter` ##\n\n```csharp\npublic class ProductElement : ConfigurationElement\n{\n  [ConfigurationProperty(\"types\", IsRequired = true)]\n  [TypeConverter(typeof(PipeDelimitedFlaggedEnumConverter\u003cProductTypes\u003e))]\n  public ProductTypes Types\n  {\n      get { return (ProductTypes)this[\"types\"]; }\n      set { this[\"types\"] = value; }\n  }\n}\n```\n\nIf the `TypeConverter` attribute class is declared with `PipeDelimitedFlaggedEnumConverter\u003cProductTypes\u003e` type, enum values delimited by a pipe sign (`|`) can be converted to a flagged enum.\n\n\n## Contribution ##\n\nYour contribution is always welcome! All your work should be done in the`dev` branch. Once you finish your work, please send us a pull request on `dev` for review. Make sure that all your changes **MUST** be covered with test codes; otherwise yours won't get accepted.\n\n\n## License ##\n\n**CVC** is released under [MIT License](http://opensource.org/licenses/MIT).\n\n\u003e The MIT License (MIT)\n\u003e \n\u003e Copyright (c) 2014 [aliencube.org](http://aliencube.org)\n\u003e \n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is\n\u003e furnished to do so, subject to the following conditions:\n\u003e \n\u003e The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\u003e \n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliencube%2Fconfiguration-value-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliencube%2Fconfiguration-value-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliencube%2Fconfiguration-value-converter/lists"}