TagLib.IFD.IFDStructure.GetRationalValue C# (CSharp) Method

GetRationalValue() public method

Returns a System.Nullable containing the System.Double stored in the entry defined by entry_tag. The entry can be of type Entries.RationalIFDEntry or Entries.SRationalIFDEntry
public GetRationalValue ( int directory, ushort entry_tag ) : double?
directory int /// A with the number of the directory /// to search for the entry. ///
entry_tag ushort /// A with the tag of the entry ///
return double?
		public double? GetRationalValue (int directory, ushort entry_tag)
		{
			var entry = GetEntry (directory, entry_tag);
			
			if (entry is RationalIFDEntry)
				return (entry as RationalIFDEntry).Value;
				
			if (entry is SRationalIFDEntry)
				return (entry as SRationalIFDEntry).Value;
			
			return null;
		}