Implemented the file identifier functionality for C#

Implement the file identifier function; roll forward from Java