How do i check for mono on runtime -


By default mono does not believe in any SSL connection, so if I'm running on mono I want to give a message I want to throw an exception again.

How do I check whether I am running on runtime in mono? (Since compiled time CLI is used)

I will quote from:

Due to the underlying runtime, the code is considered as a bad coding style, but sometimes such a code is necessary to work around the runtime bug.

  use; Classroom Program {Static Zero Main () {Type T = Type. Gettype ("mono sequence"); If (t! = Null) console. Light line ("you are running with mono vm"); Else Console.WriteLine ("You are running something else"); }}  

Comments