Problem with check method name
I wrote this code to check method′s name :
internal
classReglaNombreMetodo :BaseRule{
public ReglaNombreMetodo():
base("ReglaNombreMetodo"){} publicoverrideTargetVisibilities TargetVisibility{
get {returnTargetVisibilities.All; }}
publicoverrideProblemCollection Check(Member member){
Method method = memberasMethod; if (method ==null) returnnull; if (method.Name.Name.Length > 0){
if (!(char.IsUpper(method.Name.Name[0]))){
Problems.Add(
newProblem(newResolution("El nombre de la funcion debe empezar con Mayuscula"), method.Name.Name));}
}
return Problems;}
}
bui it doesn′t work. any ideas about what am I doing wrong?

