public bool Equals(Syntax syntax)
 {
     bool flag = true;
     if (!syntax.attributeSyntax.Equals(this.attributeSyntax) || (syntax.oMSyntax != this.oMSyntax))
     {
         return false;
     }
     return (((((this.oMObjectClass == null) || (syntax.oMObjectClass != null)) && ((this.oMObjectClass != null) || (syntax.oMObjectClass == null))) && (((this.oMObjectClass == null) || (syntax.oMObjectClass == null)) || this.oMObjectClass.Equals(syntax.oMObjectClass))) && flag);
 }
示例#2
0
文件: Syntax.cs 项目: nickchal/pash
		public bool Equals(Syntax syntax)
		{
			bool flag = true;
			if (!syntax.attributeSyntax.Equals(this.attributeSyntax) || syntax.oMSyntax != this.oMSyntax)
			{
				flag = false;
			}
			else
			{
				if (this.oMObjectClass != null && syntax.oMObjectClass == null || this.oMObjectClass == null && syntax.oMObjectClass != null || this.oMObjectClass != null && syntax.oMObjectClass != null && !this.oMObjectClass.Equals(syntax.oMObjectClass))
				{
					flag = false;
				}
			}
			return flag;
		}
		static ActiveDirectorySchemaProperty()
		{
			byte[] numArray = new byte[] { 43, 12, 2, 135, 115, 28, 0, 133, 74 };
			ActiveDirectorySchemaProperty.dnOMObjectClass = new OMObjectClass(numArray);
			byte[] numArray1 = new byte[] { 42, 134, 72, 134, 247, 20, 1, 1, 1, 12 };
			ActiveDirectorySchemaProperty.dNWithStringOMObjectClass = new OMObjectClass(numArray1);
			byte[] numArray2 = new byte[] { 42, 134, 72, 134, 247, 20, 1, 1, 1, 11 };
			ActiveDirectorySchemaProperty.dNWithBinaryOMObjectClass = new OMObjectClass(numArray2);
			byte[] numArray3 = new byte[] { 42, 134, 72, 134, 247, 20, 1, 1, 1, 6 };
			ActiveDirectorySchemaProperty.replicaLinkOMObjectClass = new OMObjectClass(numArray3);
			byte[] numArray4 = new byte[] { 43, 12, 2, 135, 115, 28, 0, 133, 92 };
			ActiveDirectorySchemaProperty.presentationAddressOMObjectClass = new OMObjectClass(numArray4);
			byte[] numArray5 = new byte[] { 43, 12, 2, 135, 115, 28, 0, 133, 62 };
			ActiveDirectorySchemaProperty.accessPointDnOMObjectClass = new OMObjectClass(numArray5);
			byte[] numArray6 = new byte[] { 86, 6, 1, 2, 5, 11, 29 };
			ActiveDirectorySchemaProperty.oRNameOMObjectClass = new OMObjectClass(numArray6);
			ActiveDirectorySchemaProperty.SyntaxesCount = 23;
			Syntax[] syntax = new Syntax[23];
			syntax[0] = new Syntax("2.5.5.3", 27, null);
			syntax[1] = new Syntax("2.5.5.4", 20, null);
			syntax[2] = new Syntax("2.5.5.6", 18, null);
			syntax[3] = new Syntax("2.5.5.12", 64, null);
			syntax[4] = new Syntax("2.5.5.10", 4, null);
			syntax[5] = new Syntax("2.5.5.15", 66, null);
			syntax[6] = new Syntax("2.5.5.9", 2, null);
			syntax[7] = new Syntax("2.5.5.16", 65, null);
			syntax[8] = new Syntax("2.5.5.8", 1, null);
			syntax[9] = new Syntax("2.5.5.2", 6, null);
			syntax[10] = new Syntax("2.5.5.11", 24, null);
			syntax[11] = new Syntax("2.5.5.11", 23, null);
			syntax[12] = new Syntax("2.5.5.1", 127, ActiveDirectorySchemaProperty.dnOMObjectClass);
			syntax[13] = new Syntax("2.5.5.7", 127, ActiveDirectorySchemaProperty.dNWithBinaryOMObjectClass);
			syntax[14] = new Syntax("2.5.5.14", 127, ActiveDirectorySchemaProperty.dNWithStringOMObjectClass);
			syntax[15] = new Syntax("2.5.5.9", 10, null);
			syntax[16] = new Syntax("2.5.5.5", 22, null);
			syntax[17] = new Syntax("2.5.5.5", 19, null);
			syntax[18] = new Syntax("2.5.5.17", 4, null);
			syntax[19] = new Syntax("2.5.5.14", 127, ActiveDirectorySchemaProperty.accessPointDnOMObjectClass);
			syntax[20] = new Syntax("2.5.5.7", 127, ActiveDirectorySchemaProperty.oRNameOMObjectClass);
			syntax[21] = new Syntax("2.5.5.13", 127, ActiveDirectorySchemaProperty.presentationAddressOMObjectClass);
			syntax[22] = new Syntax("2.5.5.10", 127, ActiveDirectorySchemaProperty.replicaLinkOMObjectClass);
			ActiveDirectorySchemaProperty.syntaxes = syntax;
		}
示例#4
0
 public bool Equals(Syntax syntax)
 {
     bool result = true;
     if ((!syntax.attributeSyntax.Equals(this.attributeSyntax))
         || (syntax.oMSyntax != this.oMSyntax))
     {
         result = false;
     }
     else
     {
         if (((this.oMObjectClass != null) && (syntax.oMObjectClass == null))
             || ((this.oMObjectClass == null) && (syntax.oMObjectClass != null))
             || ((this.oMObjectClass != null) && (syntax.oMObjectClass != null) && (!this.oMObjectClass.Equals(syntax.oMObjectClass))))
         {
             result = false;
         }
     }
     return result;
 }