返回属性中的不同值 [英] Return different values in a property

查看:72
本文介绍了返回属性中的不同值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我想根据读取它的方法在属性中返回不同的值。



谢谢beforehead。

Hi everyone!!

I want to return different values in a property,according to the method that reads it.

Thanks beforehead.

推荐答案

像理查德这样的坏主意说,但你可以使用 StackTrace 请参阅此处: http:// stackoverflow。 com / questions / 615940 /从方法中检索调用方法名称 - 方法-c [ ^ ]
A bad idea like Richard said, but you can use the StackTrace see here : http://stackoverflow.com/questions/615940/retrieving-the-calling-method-name-from-within-a-method-c[^]


这篇关于返回属性中的不同值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆