comment.cs

来自「Maolz个人展示网站源码,全部的代码,.net」· CS 代码 · 共 38 行

CS
38
字号
using System; 
using System.Text; 
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration; 
using System.Xml; 
using System.Xml.Serialization;
using SubSonic; 
using SubSonic.Utilities;

namespace SubSonic.Generated
{

	public partial class CommentCollection : ActiveList<Comment,CommentCollection>
	{
        /// <summary>
        /// 使用Comment的主键进行比较
        /// </summary>
        /// <param name="comm"></param>
        /// <returns></returns>
        public new int IndexOf(Comment comm) 
        {
            for (int i = 0; i < this.Count; i++) 
            {
                if (this[i].PKId == comm.PKId)
                    return i;
            }
            return -1;
        }
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?