goodmorningsky Posted March 22, 2005 Posted March 22, 2005 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 .... Quote Sun Certified Web component Developer, Microsoft Certified Solution Developer .NET, Software Engineer
goodmorningsky Posted March 23, 2005 Author Posted March 23, 2005 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? Quote Sun Certified Web component Developer, Microsoft Certified Solution Developer .NET, Software Engineer
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.