LDAP--对某些AD属性值是字节数组byte[]情况的类型转换方法
//BitConverter.ToBoolean((searchResult.Properties["mDBUseDefaults"][0] as byte[]), 0); rows.MDBUseDefaults = System.Text.Encoding.ASCII.GetString((searchResult.Properties["mDBUseDefaults"][0] as byte[]));
//BitConverter.ToBoolean((searchResult.Properties["mDBUseDefaults"][0] as byte[]), 0); rows.MDBUseDefaults = System.Text.Encoding.ASCII.GetString((searchResult.Properties["mDBUseDefaults"][0] as byte[]));