# How to convert method name --\> deep objtect to access in .net code.

**URL:** <https://community.dynatrace.com/t/how-to-convert-method-name-deep-objtect-to-access-in-net-code/35247>\
**Category:** Open Q&A\
**Tags:** dotnet\
**Created:** [May 23, 2022, 12:51pm UTC](https://community.dynatrace.com/t/how-to-convert-method-name-deep-objtect-to-access-in-net-code/35247 "2022-05-23T12:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakab3t](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jakab3t](https://community.dynatrace.com/u/jakab3t)\
**Post date:** [May 23, 2022, 12:51pm UTC](https://community.dynatrace.com/t/how-to-convert-method-name-deep-objtect-to-access-in-net-code/35247/1 "2022-05-23T12:51:28Z")

</div>

Unfortunately I don’t know .net very well.  
So far I have been able to set them up in Java.

I would like help on how to specify the deep object access name in .net based on the method name.

How to convert method name --\> deep object access in .net code.

Did I enter the deep object access in the image correctly?

 ![jakab3t_0-1653310119697.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/095720263c6c4fc748b355af0e84aa380bc97dc2.png)

Thanks for your help in advance.

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [June 14, 2022, 1:31pm UTC](https://community.dynatrace.com/t/how-to-convert-method-name-deep-objtect-to-access-in-net-code/35247/2 "2022-06-14T13:31:49Z")

</div>

You don’t have to specify a value in DeepObjectAccess in that case as .toString() is called automatically.

You can use DeepObjectAccess, if you want something other than toString() executed first. So e.g. if you have a user object and want to get the name of the user by executing getFirstname() you’d have to specify that.
