public PackageName(string packageName) { var split = packageName.Split(new []{'.'}, 2); Id = split[0]; Version = new PackageVersion(split[1]); }
public PackageName(string id, PackageVersion version) { Id = id; Version = version; }