4 using System.Diagnostics;
5 using SiliconStudio.Core;
6 using SiliconStudio.Core.IO;
8 namespace SiliconStudio.Assets
13 [DataContract(
"ProjectReference")]
14 [DebuggerDisplay(
"Id: {Id}, Location: {Location}")]
42 public Guid Id {
get; set; }
49 public UFile Location {
get; set; }
60 if (ReferenceEquals(null, other))
return false;
61 if (ReferenceEquals(
this, other))
return true;
62 return Id.Equals(other.Id) && Equals(Location, other.
Location) && Type == other.Type;
65 public override bool Equals(
object obj)
67 if (ReferenceEquals(null, obj))
return false;
68 if (ReferenceEquals(
this, obj))
return true;
76 var hashCode = Id.GetHashCode();
77 hashCode = (hashCode*397) ^ (Location != null ? Location.GetHashCode() : 0);
78 hashCode = (hashCode*397) ^ (
int)Type;
85 return Equals(left, right);
90 return !Equals(left, right);
ProjectReference(Guid id, UFile location, ProjectType type)
Initializes a new instance of the ProjectReference class.
override int GetHashCode()
ProjectType
Type of the project.
ProjectReference()
Initializes a new instance of the ProjectReference class.
UFile Location
Gets or sets the location of the file on the disk.
A reference to a Visual Studio project that is part of a Package
bool Equals(ProjectReference other)
Defines a normalized file path. See UPath for details. This class cannot be inherited.
override bool Equals(object obj)