Does Mono have the equivalent of ILDASM?

Yes, monodis is Mono’s equivalent for ildasm. $ cat a.cs public class Foo { public static void Main() { System.Console.WriteLine(“Hello world”); } } $ monodis a.exe .assembly extern mscorlib { .ver 1:0:5000:0 .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. } .assembly ‘a’ { .hash algorithm 0x00008004 .ver 0:0:0:0 } … Read more

SmtpClient with Gmail

Gmail’s SMTP server requires you to authenticate your request with a valid gmail email/password combination. You do need SSL enabled as well. Without actually being able to see a dump of all your variables being passed in the best guess I can make is that your Credentials are invalid, make sure you’re using a valid … Read more

Check if Object is Dictionary or List

Use the is keyword and reflection. public bool IsList(object o) { if(o == null) return false; return o is IList && o.GetType().IsGenericType && o.GetType().GetGenericTypeDefinition().IsAssignableFrom(typeof(List<>)); } public bool IsDictionary(object o) { if(o == null) return false; return o is IDictionary && o.GetType().IsGenericType && o.GetType().GetGenericTypeDefinition().IsAssignableFrom(typeof(Dictionary<,>)); }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)