HOWTO list all my functions in CSharp (C#) using Reflection

It's easy to list all methods (functions) directly in C#, below you will find code sample. And working example you can take here.

If you are looking for static methods, you should replace BindingFlags.Instance with BindingFlags.Static
class Program

{

private int PrivateMethod() { return 0; }

protected bool ProtectedMethod() {return true; }

public void IAmFunction(object param1, Array param2) { }

static void Main(string[] args)

{

Type myType = typeof(Program);

// Get the public methods.

MethodInfo[] myMethods = myType.GetMethods(BindingFlags.Instance |

BindingFlags.DeclaredOnly|

BindingFlags.Public |

BindingFlags.NonPublic );



Console.WriteLine("i have found {0} methods of Type {1}: \n", myMethods.Length, myType.FullName);

// Display all the methods.

foreach (MethodInfo m in myMethods) {

Console.WriteLine("Name: {0}", m.Name);

Console.WriteLine("Return Type: {0}", m.ReturnType.ToString());

ParameterInfo[] parameters = m.GetParameters();

Console.WriteLine("I have {0} input parameter(s):", parameters.Length);

foreach (ParameterInfo pi in parameters) {

Console.WriteLine(" Name: {0}", pi.Name);

Console.WriteLine(" Type: {0}", pi.ParameterType.ToString());

Console.WriteLine("");

}

Console.WriteLine("------------------------------------------\n");

}

Console.WriteLine("==========================================\n");

}

}

Proxy Toggle

Proxy toggle allows you to switch on/off windows proxy settings with one click.
After install it will be available as Tools | Toggle proxy menu item in IE and desktop shortcut.
In Windows 7 you can even pin shortcut to taskbar.

Pros: light, fast, zero memory footprint.

Installer is available here.

If you have to enable/ disable proxy in Internet Exlporer, Chrome or Safari  just click one button. As a result it will be (un-)checked box mentioned on the picture below.

Solution for Firefox you can take here and here tip for Opera.
It isn't multiproxy switch or selector tool. Just simple toggle (on/off) for MS Windows.
You won't find here SwitchProxy  v 1.3.4 and you don't need proxy switcher anymore if you use proxy toggle.

Please leave below yours opinion, suggestion or criticism:

Win XP, Vista IE and Chrome quick/quickly/quickest way to switch or toggle proxy on/off

Simplemail for Windows

I need sometimes to send email from windows command line. I could not find appropriate light sendmail utility and has developed own simple tool. It requires at least  .NET 2.0 installed on the system.
simplemail is available here

Usage:
simplemail.exe [-a file] [-F file] [-H file] [-s subj] [-b addr] [-c addr] addr [...]

OPTIONS
-a file
Attach a file to your message using MIME.

-b address
Specify a blind-carbon-copy (BCC) recipient

-c address
Specify a carbon-copy (CC) recipient

-F config
Specify an initialization file to read

-h Show help.

-H draft
Specify a draft file which contains header and body
to use to send a message.

-s subject
Specify the subject of the message.

-v Show version.


If you are looking how to install SMTP (Simple Mail Transfer Protocol) in Windows answer is here.

SimpleMail für Windows - DE


Ich brauche manchmal E-Mails von Windows-Befehlszeile zu senden. ich konnte icht finden entsprechende einfache sendmail Dienstprogramm und entwickelte eigene einfaches Werkzeug. Es soll mindestens .NET 2.0 auf dem System installiert werden.
SimpleMail ist hier erhältlich


Verbrauch:
simplemail.exe [-a Datei] [-F Datei] [-H Datei] [-s Betreff] [-b E-mail] [-c E-Mail] E-mail [...]


OPTIONS
-a Datei
Anfügen einer Datei an Ihre Nachricht mit MIME.


-b Adresse
Geben Sie ein Blind-Carbon-Copy (BCC) Empfänger


-c Adresse
Geben Sie eine Carbon-Copy (CC) Empfänger


-F Konfig
Geben Sie eine Initialisierungsdatei zu lesen


-h Hilfe anzeigen.


-H Entwurf
Geben Sie einen Entwurf Datei, die Header und Body enthält
zu verwenden, um eine Nachricht zu senden.


-s Betreff
Geben Sie den Betreff der Nachricht.


-v Version anzeigen.




Wenn Sie schauen, wie SMTP (Simple Mail Transfer Protocol) in Windows installieren Antwort ist hier.

SimpleMail para Windows - ES

Necesito a veces para enviar correo electrónico desde la línea de comandos de Windows. No he podido encontrar utilidad adecuada sendmail simple y sencilla herramienta se ha desarrollado propia. Se requiere por lo menos NET 2.0 instalado en el sistema.
SimpleMail está disponible aquí.

Uso:
simplemail.exe [-a archivo] [-F archivo] [-H archivo] [-s asunto ] [-b destinatario] [-C destinatario] destinatario[...]


OPCIONES
-a archivo
Adjuntar un archivo a su mensaje utilizando MIME.


-b dirección
Especifique un ciego-en copia (BCC) destinatario


-c dirección
Especifique una copia (CC) destinatario


-F config
Especificar un archivo de inicialización de leer


-h Mostrar ayuda.


-H proyecto de texto 
Especifique un archivo que contiene el proyecto de cabecera y el cuerpo utilizar para enviar un mensaje.


-s asunto del mensaje
Especifique el asunto del mensaje.


-v Muestra la versión.


Si usted está buscando cómo instalar SMTP (Simple Mail Transfer Protocol) en Windows respuesta está aquí.

FunctionList and perl subs

I was not really happy how  functionlist plugin lists perl subs by default.


Original settings


I have modified rules as you can see on picture below.
Modified regexp

Here is assumed, that sub word stays at the begin of string! (^sub).
You can remove ^ to accept all free-standing subs.

Notepad++ 5.8.3 with FunctionList on Windows 7

Many thanks for advice Ariadie and Claude!
Notepad++ 5.8.3 works perfect with FunctionList_2_1 UNICODE.

Please note that setting on Windows 7 is saved by path
%APPDATA%\Notepad++\plugins\config\FunctionListRules.xml
So you can always backup or restore your personal settings.

Enjoy it!

Asterisk AST_SORCERY function

 AST_SORCERY gets a field from a sorcery object. Sorcery is always created for PJSIP aors, endpoints and identifies in asterisk. It allows y...