Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Add version to ILibraryInformation #709

Closed
wants to merge 1 commit into from
Closed

Add version to ILibraryInformation #709

wants to merge 1 commit into from

Conversation

davidfowl
Copy link
Member

#666 the mark of the beast...

/cc @victorhurdugaci

@@ -11,6 +11,7 @@ public sealed class LibraryInformation : ILibraryInformation
public LibraryInformation(LibraryDescription description)
{
Name = description.Identity.Name;
Version = description.Identity.Version.ToString();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add any null checks? Looking at the codes I don't see any guarantees about these being non-null.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should never be null at this point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should? 😄 Would it make sense to enforce that requirement throughout the data structures?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea but c# doesn't have a type system I can use to represent that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constructors that throw if there's a null param?

@victorhurdugaci
Copy link
Contributor

Cool! You tamed the beast! :shipit:

@davidfowl davidfowl closed this Oct 7, 2014
@davidfowl davidfowl deleted the add-version branch January 19, 2015 07:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants