2.2. Login with C#

You can download the C# package here.

Example of login with C#

=

Request extra info about users in C#

Method definitions:

```csharp
[DllImportAttribute("idclib_64.dll")]
public static extern int getUserProfileInfo (string userid, string apisecret, [Out] StringBuilder nick, [Out] StringBuilder email, [Out] StringBuilder avatar, [Out] StringBuilder status, [Out] StringBuilder custom;
```

At the class that calls the method:

```csharp
IntBuilder nick = new IntBuilder(80);
StringBuilder email = new StringBuilder(320);
StringBuilder avatar = new StringBuilder(2048);
StringBuilder status = new StringBuilder(256);
StringBuilder custom = new StringBuilder(256);
Int result = getUserProfileInfo (userid, apisecret, nick, email, avatar, status, custom);
```