Class SourceCount
A word or character count value
Inheritance
Object
SourceCount
Implements
ICloneable
Inherited Members
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public class SourceCount : ICloneable
Constructors
SourceCount()
Default constructor - creates an uninitialized object.
Declaration
public SourceCount()
SourceCount(SourceCount)
Protected copy constructor used during cloning
Declaration
protected SourceCount(SourceCount other)
Parameters
| Type | Name | Description |
|---|---|---|
| SourceCount | other |
Properties
Unit
The type of items that the value represents
Declaration
public SourceCount.CountUnit Unit { get; set; }
Property Value
| Type | Description |
|---|---|
| SourceCount.CountUnit |
Value
The value that the count represents
Declaration
public long Value { get; set; }
Property Value
| Type | Description |
|---|---|
| Int64 |
Methods
Clone()
Returns a deep clone of the object
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| Object |
Equals(Object)
Objects are considered equal if they have the same unit and value.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
The hash code is computed from the unit and value. Same unit and value yields same hash code.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.ICloneable