Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Trying to Move to C# - Part II

$
0
0

In my continuing attempt o write a business base class in C# (very familiar with VB), I found several samples that say the following code should work. However I am getting errors.  I am using the latest 3.8 CSLA

Problem #1

 protected override void AddBusinessRules()

Problem #2

ValidationRules.AddRule(Csla.Validation.CommonRules.StringRequired, new Csla.Validation.RuleArgs(NameProperty));

For both problems, the problem word (void/Csla), the error is:

Error1Expected class, delegate, enum, interface, or struct

Any help?  Thanks in advance.
Ed

Viewing all articles
Browse latest Browse all 764

Trending Articles