Search code examples
c#documentationmononotimplementedexceptionmoma

Mono Documentation for NotImplementedException and MonoTodo


I'm new to Mono and plan to port my application over, if possible. I've run MoMA and there are some places it has identified that I'm calling that could throw a NotImplementedException or are tagged MonoTodo. Is there anywhere I can get more information on these specific instances it's flagging down?

For instance, I'm calling the ReceivedBytesThreshold setter on SerialPort and MoMA tells me that this could throw a NotImplementedException. When I read more about MoMA's results, it tells me that NotImplementedException may mean that the method is not implemented at all or under certain circumstances it may throw this exception. Therefore, I need to be able to read more about this case to see if and how to modify my code.


Solution

  • Typically, the MonoTODO attribute includes a string that gives details about what specifically is left to do. In the particular case of the ReceivedBytesThreshold, the only details are "Not implemented". You can see see the details by either using some tricky reflection, or by browsing the class lib source code:

    SerialPort.cs from SVN