Skip to content

Conversation

@matteobaglini
Copy link
Contributor

...n get Fields. The method "GetFieldsToReturn" can be inlined, but isn't an "if" so skip it.

@arialdomartini
Copy link
Contributor

Yes! I couldn't agree more!

Actually, it's pretty strange that fields are not initialized in the constructor, isn't it?

I think you could submit this PL to @ayende himself, even if I'd split it into separate commits (for example, I guess he could be interested in the constructor initialization, but not in the extension method HashSet<T> ToHashSet<T>(this IEnumerable<T>))

I'd merge this PL.

+1

@arialdomartini arialdomartini changed the title Proposal #2 - initialize members into ctor and clone ensuredFieldNames o... Solution #2 - initialize members into ctor and clone ensuredFieldNames o... Jul 23, 2014
@arialdomartini arialdomartini merged commit 36f86f7 into code4nothing:master Jul 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants