Class FilesExtensions
- Namespace
- Cognite.Simulator.Extensions
- Assembly
- Cognite.Simulator.Extensions.dll
Class containing extensions to the CDF Files resource with utility methods for simulator integrations
public static class FilesExtensions
- Inheritance
-
FilesExtensions
- Inherited Members
Methods
GetExtension(File)
Returns the file extension of a given CDF file. This is based on the file name and returns the extension in lowercase without the leading period.
public static string GetExtension(this File file)
Parameters
file
File
Returns
GetFileExtension(string)
Returns the file extension of a given file name. This is based on the file name and returns the extension in lowercase without the leading period
public static string GetFileExtension(string fileName)
Parameters
fileName
string