On Sat, 2003-09-06 at 01:49, Sebastien Pouliot wrote: > Gius, > > This is probably because > (a) params is a reserved keyword with C# - i.e. your 2 sample lines won't > compile with VS.NET, or
Yes, by renaming this variable (e.g. parameters), the code compiles fine... (arrch! I didn't know that params is a reserved keyword). > (b) RSA is a (abstract) class from which RSACryptoServiceProvider inherits > (and it, somehow, mess up with mcs). Thank you all, Gius_. > > Sebastien Pouliot > Security Architect, Motus Technologies, http://www.motus.com/ > work: [EMAIL PROTECTED] > home: [EMAIL PROTECTED] > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Giuseppe Greco > Sent: 5 septembre 2003 16:16 > To: Mono > Subject: [Mono-list] Problem with System.Cryptography.RSAParameters... > > > Hi all, > > does anybody know why the following code does not compile? > > using System.Cryptography; > > RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(); > ... > RSAParameters params = RSA.ExportParameters(false); // does not compile > ... > > The compiler always complies like this: > > syntax error, expecting OPEN_BRACKET OPEN_PARENS DOT COLON ASSIGN STAR > OP_INC OP_DEC OP_MULT_ASSIGN OP_DIV_ASSIGN OP_MOD_ASSIGN OP_ADD_ASSIGN > OP_SUB_ASSIGN OP_SHIFT_LEFT_ASSIGN OP_SHIFT_RIGHT_ASSIGN OP_AND_ASSIGN > OP_XOR_ASSIGN OP_OR_ASSIGN OP_PTR IDENTIFIER > > gekkota/src/Gekkota.Security/Gekkota.Security.Cryptography/AsymmetricCryptor > .cs(405) error CS1002: Expecting `;' > > The code above does compile with csc on Windows. > > Thanks, > Gius_. > > > -- > ---------------------------------------- > Giuseppe Greco > > ::agamura:: > > phone: +41 (0)91 604 67 65 > mobile: +41 (0)76 390 60 32 > email: [EMAIL PROTECTED] > web: www.agamura.com > ---------------------------------------- > > _______________________________________________ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/mono-list -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web: www.agamura.com ---------------------------------------- _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list