예제 #1
0
        /// <summary>
        /// Determines whether two grantees are equal.  They must have both the same name and type.
        /// </summary>
        /// <param name="obj">The object to compare this to</param>
        /// <returns>True if these grantees are equal</returns>
        public override bool Equals(object obj)
        {
            Grantee g2 = (Grantee)obj;

            return(g2.name.Equals(name) && g2.granteeType.Equals(granteeType));
        }
예제 #2
0
	    /// <summary>
	    /// Creates a new grant
	    /// </summary>
	    /// <param name="grantee">The recipient of the grant</param>
	    /// <param name="permission">The permissions granted</param>
        public Grant( Grantee grantee, string permission ) {
            this.grantee = grantee;
            this.permission = permission;
        }
예제 #3
0
 /// <summary>
 /// Creates a new grant
 /// </summary>
 /// <param name="grantee">The recipient of the grant</param>
 /// <param name="permission">The permissions granted</param>
 public Grant(Grantee grantee, string permission)
 {
     this.grantee    = grantee;
     this.permission = permission;
 }