T
Tony Johansson
Hello!
A have this small FileInformation class
public class
{
public string Id { get; set; }
}
In some other place in the code I have this kind of statement
anObject.Add(new FileInformation {Id = strCurrentFileId});
The definition of Id in FileInformation is completely new to me because this
doesn't
exist in 2.0.
Does this mean that you define both a field and a propety(get and set) with
name id with access right as
public ?
I have been learned that defining a field as public is not a good thing to
use OOP
//Tony
A have this small FileInformation class
public class
{
public string Id { get; set; }
}
In some other place in the code I have this kind of statement
anObject.Add(new FileInformation {Id = strCurrentFileId});
The definition of Id in FileInformation is completely new to me because this
doesn't
exist in 2.0.
Does this mean that you define both a field and a propety(get and set) with
name id with access right as
public ?
I have been learned that defining a field as public is not a good thing to
use OOP
//Tony