System.NullReferenceException

编程入门 行业动态 更新时间:2024-10-25 20:18:13
本文介绍了System.NullReferenceException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好我有2个类的应用程序.xaml.cs和Valeur.xaml.cs同样的支持

Hello I have 2 classapplications.xaml.cs et Valeur.xaml.csin same backage

公共部分类申请:申请 { $ public static IdClient {get;组; }

public partial class applications : Application { public static IdClient{ get; set; }

}

公共部分类ListePrescriptions:UserControl {

public partial class ListePrescriptions : UserControl{

}

Liset.ClientId = applications.IdClient.Patient我有异常系统。 NullReferenceException,因为它不知道什么是应用程序

in the ligne Liset.ClientId = applications.IdClient.Patient I have exception System. NullReferenceException because it don't know what'is application

推荐答案

嗨kh.hajar,

Hi kh.hajar,

>>因为它不知道什么是应用程序

据我所知,Application类封装Silverlight应用程序(单例模式)。提供多种服务:应用程序生命周期,应用程序资源文件加载,未处理的异常和Web主机集成。

As far as I know, the Application class encapsulates a Silverlight application (singleton mode). Provide several services: application lifecycle, application resource file loading, unhandled exception, and Web host integration。

应用程序类: msdn.microsoft/en-us/library/system.windows.application(VS .95).aspx

>>患者我有异常系统。 NullReferenceException

你的Silverlight和sdk版本是否一致?

Does your Silverlight and sdk versions is consisten?

最好的问候,

Best Regards,

Yohann Lu

Yohann Lu

更多推荐

System.NullReferenceException

本文发布于:2023-11-17 03:21:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:System   NullReferenceException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!