If you think about it, it makes sense.
An automatic property is defined in C# as follows:
public string Name { get; private set; }
The compiler will generate code for the getter and setter, as well as a
backing field. So in your source code they don't have bodies, so it's not
represented in the pdb either.
2010/7/3 Simon Cropp <[email protected]>
> Thanks JB
> Well actually it i bad news but it is much better for me to get it
> promptly than waste time on it :)
>
>
> On Sat, Jul 3, 2010 at 8:58 PM, Jb Evain <[email protected]> wrote:
> > On Sat, Jul 3, 2010 at 12:55 PM, Simon Cropp <[email protected]>
> wrote:
> >> so if a class has only automatic properties, from a pdb perspective,
> >> is has no source?
> >
> > Yes. Or in other words, if a type doesn't have any method with a
> > sequence point, from a pdb perspective you can't estimate in which
> > file the type is.
> >
> > --
> > Jb Evain <[email protected]>
> >
> > --
> > --
> > mono-cecil
>
> --
> --
> mono-cecil
--
--
mono-cecil