fixed Nullable<bool> and added C# baseclass