Concept of Private class in C#

Simply NO. Nothing unless its in a nested Class Classes and structs that are not nested within other classes or structs can be either public or internal. A type declared as public is accessible by any other type. A type declared as internal is only accessible by types within the same assembly. Classes and structs … Read more

Why is Unity ignoring the initialized value of a non-static public field?

The double-edged sword of serialization Unity wants to make things easier for everyone, including people with limited coding knowledge (beginners, designers). To help them out, Unity displays data in the inspector. This allows the coder to code and the designer to design by tweaking the values without opening MonoDevelop/an IDE. There are two ways to … Read more

Why elements defined in a namespace cannot be explicitly declared?

Elements defined in a namespace may be explicitly declared public or internal. They may not be explicitly declared private or protected (or protected internal) because these modifiers only make sense for members of a class. Your protected class GetDataBL, for example, makes no sense, because “protected” means “accessible to classes that inherit from the containing … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)