Class Defect
A defect.
[DataContract(IsReference = true)]
[KnownType(typeof(Defect))]
public class Defect : INotifyPropertyChanged
- Inheritance
-
Defect
- Implements
- Inherited Members
Fields
PathSeparator
The separator to use when constructing defect and repair paths for display.
public const string PathSeparator = "_"
Field Value
Properties
DefectId
Gets or sets the unique identifier for this defect.
[DataMember]
public int DefectId { get; set; }
Property Value
FullName
Gets the full name of the defect, as the individual parts separated by underscores.
public string FullName { get; }
Property Value
Remarks
This property value is derived from the Name of this defect and each parent defect up through the hierarchy.
PropertyChanged notifications are not completely reliable for this property; they only fire when this defect's Name or ParentDefect property changes.
IsDeserializing
Gets or sets whether this object is currently being deserialized.
protected bool IsDeserializing { get; }
Property Value
Name
Gets or sets the defect name.
[DataMember]
public string Name { get; set; }
Property Value
ParentDefect
Gets or sets the parent defect.
[DataMember]
public Defect ParentDefect { get; set; }
Property Value
ParentDefectHasBeenIncluded
Gets or sets whether a navigation property has been included yet while getting an entity graph for a data model (to prevent doing so more than once).
public bool ParentDefectHasBeenIncluded { get; set; }
Property Value
Methods
IsDescendedFrom(Defect)
Determines whether this defect is a descendant of another.
public bool IsDescendedFrom(Defect other)
Parameters
other
DefectA defect.
Returns
Exceptions
- ArgumentNullException
other
is null.
OnPropertyChanged(string)
Processes property changes by raising the PropertyChanged event.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
stringThe name of the property that changed.
ToString()
Returns the FullName value as a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged