Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3272342
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:48:58+00:00 2026-05-17T18:48:58+00:00

Ok, I am making a wrapper of a class that has very long path

  • 0

Ok, I am making a wrapper of a class that has very long path to get variables. By example, it has the following:

Class1.Location.Point.X
Class1.Location.Point.Y
Class1.Location.Point.Z
Class1.Location.Curve.get_EndPoint(0).X
Class1.Location.Curve.get_EndPoint(0).Y
Class1.Location.Curve.get_EndPoint(0).Z
Class1.Location.Curve.get_EndPoint(1).X
Class1.Location.Curve.get_EndPoint(1).Y
Class1.Location.Curve.get_EndPoint(1).Z

Now, in my wrapper, I would like to simplify it to this:

Wrapper.X
Wrapper.Y
Wrapper.Z
Wrapper.P0.X
Wrapper.P0.Y
Wrapper.P0.Z
Wrapper.P1.X
Wrapper.P1.Y
Wrapper.P1.Z

My wrapper look like about this:

public class Wrapper
{
    protected Class1 c1 = null
    public Wrapper(Class1 cc1)
    {
         c1 = cc1;
    }

    public int X
    {
            get{return C1.Location.Point.X;}
    }
    public int Y
    {
            get{return C1.Location.Point.Y;}
    }
    public int Z
    {
            get{return C1.Location.Point.Z;}
    }
}

Now my problem is the P0.X and cie. I don’t know how to do it. I tried with a subclass, but it doesnt allow me to get access to my variable c1. How can I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:48:58+00:00Added an answer on May 17, 2026 at 6:48 pm

    Well, I figured it out (it seems I need post a question here to figure out much of my stuff by myself).

    Was rather basic stuff, I dont understand why I didnt figure it out faster.

    I made a subclass Point0(Class1 c1) and added to my Wrapper a variable Point0 named point0 and a property named P0 that return point0, so it gives me Wrapper.P0.X

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried making a wrapper class that encapsulates an object, a string (for naming
Has anyone managed to do this? I tried making a managed wrapper class for
I'm making a C++ wrapper for a piece of C code that returns a
I'm making a C++/CLI wrapper for a C++ class, but the DLL created by
I'm writing a wrapper around a class library that I have no control over.
I've got a wrapper class which encapsulates a piece of information that needs to
I have a class 'Database' that works as a wrapper for ADO.net. For instance,
Im making a web page that, will get the html code of it self
Making an adobe flex ui in which data that is calculated must use proprietary
Making UML sequence diagram in VS 2010RC I've observed that there is no activation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.