# Access member between classes

**URL:** <https://forums.fusetools.com/t/access-member-between-classes/2096>\
**Category:** How-to Discussions\
**Created:** [April 8, 2016, 3:15am UTC](https://forums.fusetools.com/t/access-member-between-classes/2096 "2016-04-08T03:15:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardo\_carisio](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@eduardo\_carisio](https://forums.fusetools.com/u/eduardo_carisio)\
**Post date:** [April 8, 2016, 3:15am UTC](https://forums.fusetools.com/t/access-member-between-classes/2096/1 "2016-04-08T03:15:24Z")

</div>

How can i access members from one class in other class?

---

<div class="post-metadata">

**Author:** ![Vegard\_Strand\_Lende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vegard_strand_lende/32/349_2.png) [@Vegard\_Strand\_Lende](https://forums.fusetools.com/u/Vegard_Strand_Lende)\
**Post date:** [April 11, 2016, 9:58am UTC](https://forums.fusetools.com/t/access-member-between-classes/2096/2 "2016-04-11T09:58:58Z")

</div>

In what context? JavaScript or Uno?

If you are talking about Uno, it works just like Java and C#.

Consider this example:

```auto
public class Name
{
    public string First;
    private string Last;
}

public class Person
{
    public Name Name;

    public Person(Name name)
    {
        Name = name;
    }

    public void PrintName()
    {
        debug_log(Name.First);
        // debug_log(Name.Last); <-- illegal since Name.Last is private
    }
}

```

Since Uno is a C# dialect you can have a look at the C# documentation for members: [https://msdn.microsoft.com/en-us/library/ms173113.aspx](https://msdn.microsoft.com/en-us/library/ms173113.aspx)

---

<div class="post-metadata">

**Author:** ![eduardo\_carisio](https://avatars.discourse-cdn.com/v4/letter/e/85f322/32.png) [@eduardo\_carisio](https://forums.fusetools.com/u/eduardo_carisio)\
**Post date:** [April 11, 2016, 1:23pm UTC](https://forums.fusetools.com/t/access-member-between-classes/2096/3 "2016-04-11T13:23:21Z")

</div>

Not about Uno, i’m trying to do this inside a State in a StateGroup. I want to access objects between two Panels with ux:Class but i can’t. I really don’t want to use ux:InnerClass. There is any other solution?

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 12, 2016, 11:23am UTC](https://forums.fusetools.com/t/access-member-between-classes/2096/4 "2016-04-12T11:23:50Z")

</div>

Why don’t you want to use ux:InnerClass / what happens when you do?
