1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #737 resolved

Bug in analyse_text()

Ziang Song
created an issue

For this C# code, the method only return 0.001 for <class 'pygments.lexers.dotnet.CSharpAspxLexer'>

{{{

!C

[DataContract]
public class Answer
{
    private Int32 _answerId;
    private String _answerTitle;
    OsqarSQL getData;
    DataTable DT;

    // Constructor Logic
    public Answer(int AnswerID)
    {
        getData = new OsqarSQL();
        DT = getData.GetAnswerTitleWcf(AnswerID);
        _answerTitle = DT.Rows[0][1].ToString();   
    }

    // Define DataMembers for XML output
    [DataMember]
    public String AnswerTitle
    {
        get { return _answerTitle; }
        set { _answerTitle = value; }
    }
}

}}}

Comments (1)

  1. Log in to comment