Author: borisk
Date: 2005-03-28 09:37:23 -0500 (Mon, 28 Mar 2005)
New Revision: 42307

Modified:
   trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/ChangeLog
   
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/DirectoryEntries.cs
   
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/SearchResult.cs
Log:
* DirectoryEntries.cs : 
- Removed unnecessary console output.
* SearchResult.cs :
- Initialize Path property in constructor.
- Removed unnecessary console output.

Modified: 
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/ChangeLog
===================================================================
--- trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/ChangeLog 
2005-03-28 11:00:19 UTC (rev 42306)
+++ trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/ChangeLog 
2005-03-28 14:37:23 UTC (rev 42307)
@@ -1,3 +1,11 @@
+2005-03-28  Boris Kirzner <[EMAIL PROTECTED]>
+
+       * DirectoryEntries.cs : 
+               - Removed unnecessary console output.
+       * SearchResult.cs :
+               - Initialize Path property in constructor.
+               - Removed unnecessary console output.
+
 2005-03-22  Boris Kirzner <[EMAIL PROTECTED]>
 
        * DirectorySearcher.cs : 

Modified: 
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/DirectoryEntries.cs
===================================================================
--- 
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/DirectoryEntries.cs
       2005-03-28 11:00:19 UTC (rev 42306)
+++ 
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/DirectoryEntries.cs
       2005-03-28 14:37:23 UTC (rev 42307)
@@ -62,11 +62,9 @@
                                _Conn.Bind(_Buser,_Bpass);
                        }
                        catch(LdapException ex)                 {
-                               Console.WriteLine("Error:" + 
ex.LdapErrorMessage);
                                throw ex;
                        }
                        catch(Exception e)                              {
-                               Console.WriteLine("Error:" +  e.Message);
                                throw e;
                        }
                }
@@ -75,7 +73,6 @@
                {
                        get                                                     
                        {
                                if( _Basedn == null)                            
{
-//                                     Console.WriteLine("Basepath:" + _Bpath);
                                        LdapUrl lurl=new LdapUrl(_Bpath);
                                        string bdn = lurl.getDN();
                                        if( bdn != null)
@@ -153,7 +150,6 @@
                {
                        m_oValues= new ArrayList();
                        string[] attrs={"objectClass"};
-//                     Console.WriteLine("BaseDN is:" + Basedn);
                        LdapSearchResults lsc= Conn.Search(     Basedn,
                                                                                
                LdapConnection.SCOPE_ONE,
                                                                                
                "objectClass=*",
@@ -170,7 +166,6 @@
                                        nextEntry = lsc.next();
                                }
                                catch(LdapException e)          {
-                                       Console.WriteLine("Error: " + 
e.LdapErrorMessage);
                                        // Exception is thrown, go for next 
entry
                                        continue;
                                }
@@ -276,7 +271,6 @@
                                                cEntry.Path=curl.ToString();
                                        }
                                        catch(LdapException e)                  
{
-                                               Console.WriteLine("Error: " + 
e.LdapErrorMessage);
                                                // Exception is thrown, go for 
next entry
                                                throw e;
                                        }

Modified: 
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/SearchResult.cs
===================================================================
--- 
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/SearchResult.cs
   2005-03-28 11:00:19 UTC (rev 42306)
+++ 
trunk/mcs/class/System.DirectoryServices/System.DirectoryServices/SearchResult.cs
   2005-03-28 14:37:23 UTC (rev 42307)
@@ -107,7 +107,6 @@
                                                        
if(Rproperties[attribute].Count==1)
                                                        {
                                                                String val = 
(String)Rproperties[attribute].Value;
-//                                                         
Console.WriteLine("attribute:" + attribute + "value:" + val);
                                                                rpVal.Add(val);
                                                        }
                                                        else
@@ -115,7 +114,6 @@
                                                                Object[] 
vals=(Object [])Rproperties[attribute].Value;
 //                                                             String[] 
aStrVals= new String[_Entry.Properties[attribute].Count];
                                                                
rpVal.AddRange(vals);
-//                                                         
Console.WriteLine("attribute1:" + attribute + "value:" +vals[0]);
                                                        }
                                                        
_Properties.Add(attribute,rpVal);
                                        }
@@ -129,12 +127,14 @@
                {
                        InitBlock();
                        _Entry = entry;
+                       _Path = entry.Path;
                }
 
                internal SearchResult(DirectoryEntry entry, PropertyCollection 
props)
                {
                        InitBlock();
                        _Entry = entry;
+                       _Path = entry.Path;
                        _Rproperties = props;
                }
                /// <summary>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to