Class OtherSourceInfo
Implementation of IDocumentSourceInfo for a document which was retrieved from a location that may be identified, but is not a file on disk.
Inheritance
Inherited Members
Namespace: ZptSharp.Rendering
Assembly: ZptSharp.Abstractions.dll
Syntax
public sealed class OtherSourceInfo : IDocumentSourceInfo, IEquatable<IDocumentSourceInfo>
Constructors
| Improve this Doc View SourceOtherSourceInfo(String)
Initializes a new instance of the OtherSourceInfo class.
Declaration
public OtherSourceInfo(string sourceLocation)
Parameters
Type | Name | Description |
---|---|---|
System.String | sourceLocation | A string identifying the source location. |
Properties
| Improve this Doc View SourceName
Gets the name of the source.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the document source. |
SourceLocation
Gets the identifier for the source location.
Declaration
public string SourceLocation { get; }
Property Value
Type | Description |
---|---|
System.String | The source location. |
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object is equal to the current OtherSourceInfo.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current OtherSourceInfo. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Equals(IDocumentSourceInfo)
Determines whether the specified IDocumentSourceInfo is equal to the current OtherSourceInfo.
Declaration
public bool Equals(IDocumentSourceInfo other)
Parameters
Type | Name | Description |
---|---|---|
IDocumentSourceInfo | other | The IDocumentSourceInfo to compare with the current OtherSourceInfo. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Serves as a hash function for a OtherSourceInfo object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table. |
Overrides
ToString()
Returns a System.String that represents the current OtherSourceInfo.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current OtherSourceInfo. |