如何检查对象是否已存在 [英] how to check if an object already exists

查看:91
本文介绍了如何检查对象是否已存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查对象是否已存在并返回对该对象的引用

解决方案

您能否详细描述一下您的问题?


我必须写一个花店

i需要检查客户端是否已经存在以便我不添加新的


[font = Verdana] [size = 2]你的问题还不清楚。[/ size] [/ font]

[font = Verdana] [size = 2]一般来说我们比较对象的实例null,[/ size] [/ font]

[font = Verdana] [size = 2]查看是否存在... [/ size] [/ font]


i必须写一个花店

i需要检查客户端是否已经存在以便我不添加新的


how to check if an object already exists and return reference to that object

解决方案

Can you please describe your question in more detail?


i have to write a flower shop
i need to check if a client already exists so that i dont add a new one


[font=Verdana][size=2]your question is not yet clear.[/size][/font]
[font=Verdana][size=2]In general we compare the instance of the object with null,[/size][/font]
[font=Verdana][size=2]to see if it exists or not...[/size][/font]

i have to write a flower shop
i need to check if a client already exists so that i dont add a new one


这篇关于如何检查对象是否已存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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