Class SourceCount
A word or character count value
Implements
Inherited Members
Namespace: SdlSdl.FileTypeSupportFrameworkNativeApi
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 |
---|---|
SourceCountCountUnit |
Value
The value that the count represents
Declaration
public long Value { get; set; }
Property Value
Type | Description |
---|---|
long |
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 |
---|---|
bool |
Overrides
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 |
---|---|
int |