Skip to content

Default instances#31

Merged
alanquillin merged 2 commits intorackspace:masterfrom
sharwell:DefaultInstances
Aug 2, 2013
Merged

Default instances#31
alanquillin merged 2 commits intorackspace:masterfrom
sharwell:DefaultInstances

Conversation

@sharwell
Copy link

@sharwell sharwell commented Aug 1, 2013

Some helper classes in the SDK are immutable and always use a newly-constructed default instance. This is inefficient, so I added a Default property to these types so the default instance can be used without constructing unnecessary objects.

This is a non-breaking change at both the source and binary levels. The public constructor for each remains in place so user code which explicitly constructs new instances of these types (as opposed to passing null) does not break.

…dard regular expressions, provide a default implementation (HttpStatusCodeParser.Default)
@ghost ghost assigned alanquillin Aug 1, 2013
alanquillin added a commit that referenced this pull request Aug 2, 2013
@alanquillin alanquillin merged commit b71eb82 into rackspace:master Aug 2, 2013
@sharwell sharwell deleted the DefaultInstances branch August 2, 2013 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants