Microsoft.JScript.Class.CheckMemberNamesForCLSCompliance C# (CSharp) Method

CheckMemberNamesForCLSCompliance() protected method

protected CheckMemberNamesForCLSCompliance ( ) : void
return void
      protected void CheckMemberNamesForCLSCompliance(){
        // Check top-level class name for CLS compliance.
        if (!(this.enclosingScope is ClassScope))
          this.Engine.CheckTypeNameForCLSCompliance(this.name, this.GetFullName(), this.context);
        // Check is all member names are CLS compliant
        Hashtable caseInsensitiveNameTable = new Hashtable(StringComparer.OrdinalIgnoreCase);
        for (int i = 0, n = this.fields.Length; i < n; i++){
          JSMemberField field = this.fields[i];
          if (field.IsPrivate) continue;
          if (!VsaEngine.CheckIdentifierForCLSCompliance(field.Name))
            field.originalContext.HandleError(JSError.NonCLSCompliantMember);
          else{
            if ((JSMemberField)caseInsensitiveNameTable[field.Name] == null)
              caseInsensitiveNameTable.Add(field.Name, field);
            else
              field.originalContext.HandleError(JSError.NonCLSCompliantMember);
          }
        }
      }