Click or drag to resize

AbsoluteAndRelativeFileName Class

Holds an absolute file name, plus the same file name but relative to the project file.
Inheritance Hierarchy
SystemObject
  Altaxo.SerializationAbsoluteAndRelativeFileName

Namespace: Altaxo.Serialization
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class AbsoluteAndRelativeFileName : ICopyFrom, 
	ICloneable

The AbsoluteAndRelativeFileName type exposes the following members.

Constructors
 NameDescription
Public methodAbsoluteAndRelativeFileName Initializes a new instance of the AbsoluteAndRelativeFileName class.
Top
Properties
 NameDescription
Public propertyAbsoluteFileName Gets or sets the absolute file name. When getting this property, no attempt is made to resolve the file name. If you intend to resolve the file name, use GetResolvedFileNameOrNull instead.
Top
Methods
 NameDescription
Public methodClone Creates a new object that is a copy of the current instance.
Public methodCopyFrom Try to copy from another object. Should try to copy even if the object to copy from is not of the same type, but a base type. In this case only the base properties should be copied.
Public methodEquals Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodGetResolvedFileNameOrNull Gets the absolute resolved file name or null. In order to resolve the name, at first it is tested whether a file with the stored absolute file name exists. If it exists, the absolute file name is returned. If such a file does not exist, the file name is evaluated from the stored relative file name and the name of the project file. Again, if a file under this name exist, the absolute file name of this file is returned. If neither the absolute nor the relative file name leads to an existing file, null is returned.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also