logo       

accessor macro question: msg#00025

lang.nemerle.devel

Subject: accessor macro question

Hi,

I want to know about accessor macro.

-- sample.n
using System;
using System.IO;
using Nemerle.Utility;

public class Foo {
[Accessor(flags=WantSetter)] mutable _bar : string;
}
--

compiled sample.n to dll(assembly) and use from C#.
but error CS1545 occurred.

then, I disassemble the compiled asseimbly by Reflector.

--
public class Foo
{
// Methods
public Foo();

// Properties
public string this[string] { get; set; }

// Fields
private string _bar;
}
--
there is indexer, but Bar property is not exists.

Please give me instructions for using the accessor macro.


Thanks.

--
akiramei <mei@xxxxxxxxxxxxxxxx>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise