Skip to content
Automatically exported from code.google.com/p/unconstrained-melody
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ConstraintChanger Fixes for the constraint changer, including using the generated .res … Mar 29, 2015
UnconstrainedMelody.Test Fixes issue 12, where the GetNamesArray test was completely bogus. Jan 24, 2013
UnconstrainedMelody
lib First hacky cut. Sep 10, 2009
.gitignore Fixes for the constraint changer, including using the generated .res … Mar 29, 2015
UnconstrainedMelody VS2008.sln Fix for issue 9. Would like to put a UTF-8 BOM at the start, but can'… Jan 27, 2012
UnconstrainedMelody VS2010.sln
UnconstrainedMelody.nuspec Fix URL and update the version number to 0.2.1. Mar 29, 2015
readme.md Update readme.md Aug 5, 2017

readme.md

This isn't the library you're looking for

Neat as Unconstrained Melody was, it was very much hacked together. The enums part of it was always more compelling to me than the delegate part, and Tyler Brinkley has done a better job of implementing that in his Enums.NET project. Importantly, the NuGet package for Enums.NET supports .NET Core by targeting netstandard1.0. I looked into doing the same thing for Unconstrained Melody (as did Nick Craver - thanks!) but it's too much work for too little benefit compared with rallying round Enums.NET and its accompanying corefx proposal.

I don't expect to publish any more releases of Unconstrained Melody.


Full documentation may come later, if there's enough demand.

For the moment, read this blog post: http://codeblog.jonskeet.uk/2009/09/10/generic-constraints-for-enums-and-delegates/

Then if you just want the library, install the NuGet package: http://nuget.org/List/Packages/UnconstrainedMelody

Or if you want the "Constraint Changer" to write your own generic members in the same way, build the source code from the project home page: http://code.google.com/p/unconstrained-melody/

Email me with any queries, questions, etc. (Or use the issue tracker to report bugs.) Jon Skeet, skeet@pobox.com

You can’t perform that action at this time.