草庐IT

DefaultOutputInformation

全部标签

c# - 退出无效方法?

我有这个方法(修改后的代码):publicstaticvoidPublishXmlForCustomTypes(MyOwnClassDefaultOutputInformation){if(DefaultOutputInformation!=null){///lotofcode}}我的整个代码都在if语句中,在考虑之后,我改为:publicstaticvoidPublishXmlForCustomTypes(MyOwnClassDefaultOutputInformation){if(DefaultOutputInformation==null){return;}///lotofcod

c# - 退出无效方法?

我有这个方法(修改后的代码):publicstaticvoidPublishXmlForCustomTypes(MyOwnClassDefaultOutputInformation){if(DefaultOutputInformation!=null){///lotofcode}}我的整个代码都在if语句中,在考虑之后,我改为:publicstaticvoidPublishXmlForCustomTypes(MyOwnClassDefaultOutputInformation){if(DefaultOutputInformation==null){return;}///lotofcod