Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all

 

Uri myUri = new Uri("http://localhost/ddmswebservice/services.asmx/VerifyUser");

 

and I put break point and check myUri's values from Local window it gives following.

 

For example, BasePath is not the property or method of Uri class.

I tried to get the value. But, I can't find it.

Then how Visual studio be able to show it?

If VS.NET can do it, I should be able to get the value.

Do you know any differenct between what I can get from Local window and What I can get from my code out of an object?

 

From Local..

uri
{System.Uri}
   System.MarshalByRefObject: {System.Uri}
   AbsolutePath: "/ddmswebservice/servssices.asmx/VerifyUser"
   AbsoluteUri: "http://localhfdsost/ddmswebservice/servssices.asmx/VerifyUser"
   Authority: "localhfdsost"
   BasePath: "/ddmswebservice/servssices.asmx/"
   CaseInsensitiveHashCodeTable: {Length=256}
   CurrentDocument: "VerifyUser"
   DisplayFragment: ""
   DisplayNameNoExtra: "http://localhfdsost/ddmswebservice/servssices.asmx/VerifyUser"
   DisplayPath: "/ddmswebservice/servssices.asmx/VerifyUser"
   DisplayPathLocal: "/ddmswebservice/servssices.asmx/VerifyUser"
   DisplayQuery: ""
   Fragment: ""
   HexLowerChars: {Length=16}
   HexUpperChars: {Length=16}
   Host: "localhfdsost"
   HostNameType: Dns
   HostType: {System.DomainName}
   IsDefaultPort: true
   IsFile: false
   IsLoopback: false
   IsSchemeKnownToHaveSlashes: true
   IsUnc: false
   LocalPath: "/ddmswebservice/servssices.asmx/VerifyUser"
   m_AbsoluteUri: "http://localhfdsost/ddmswebservice/servssices.asmx/VerifyUser"
   m_AlreadyEscaped: false
   m_Fragment: ""
   m_FragmentEscaped: false
   m_Hash: -2048096441
   m_HasScheme: true
   m_HasSlashes: true
   m_Host: {System.DomainName}
   m_IsDefaultPort: true
   m_IsFile: false
   m_IsFileReally: false
   m_IsSchemeKnownToHaveSlashes: 1
   m_IsUnc: false
   m_Path: "/ddmswebservice/servssices.asmx/VerifyUser"
   m_PathEscaped: false
   m_Port: 80
   m_Query: ""
   m_QueryEscaped
....

Sun Certified Web component Developer,

Microsoft Certified Solution Developer .NET,

Software Engineer

Posted

That's true..

 

So, they can access even private fields?

I think they use

 

BindingFlags Flags= BindingFlags.NonPublic; // more goes here... i guess.

 

MethodInfo[] mti = type.GetMethods(Flags);

 

So, we can access all private fields using reflection?

Sun Certified Web component Developer,

Microsoft Certified Solution Developer .NET,

Software Engineer

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...