Thanks for replying me.
I tried the given code, but I am not able to write it in C#.Net. As I don't know the varaible type of CRC16. Can you please explain me?