列表 第页
我想遍历一个自定义类的属性,然而,由Adobe提供的方法似乎不起作用。我没有收到编译或运行时错误。I'm trying to iterate through the properties of a custom class, however, the methods provided by Adobe appear...阅读全文
下面是我的项目的一个非常简化的版本。Here's a very simplified version of my project.我有一个类文件:class MyClass{public var myNumberStoredInClass:Number;// constructorfunction MyClas...阅读全文
香港专业教育学院有一个奇怪的问题,在Android simplexml的框架。我试着去阅读和从XML源填充对象称为weatherdata。Ive got a weird problem with simplexml framework on android. Im trying to read and fill an...阅读全文
我不知道是否有可能我已经看到:在运行时更改属性的参数。 我的情况是非常相似,但我试图改变一个类的属性,在运行时:I am not sure if it is possible I have seen:Change Attribute's parameter at runtime.My case is very...阅读全文
I have this class.class Assignment {private Integer index;private List quantities;}Then, I have a list of objects from that class.List as...阅读全文
我有一类简单的东西,状态,它包含两个属性。我想用一个枚举的属性(StatusID)中的一个,这样我可以消灭一堆魔字符串。 我的问题是,再怎么我使用它,比如:我有一个方法,该方法返回一个列表在一个下拉框,看起来像这样绑定 - > 公共静态的IList<状态> GetAdminStatuses(){IQuer...阅读全文
实体框架已经创建了所需的部分类。我可以将这些部分类的数据源窗口和属性显示预期。不过,如果我向任何一个类在一个单独的源文件中的这些特性甚至不经过编译出现在Data Sources窗口,并刷新。Entity Framework has created the required partial classes. I can...阅读全文
我有一个具有公开征集LoadedAssembly {设置一类;得到; } var assemblyName = AssemblyName.GetAssemblyName(fullPathToDLLFile);myClass.LoadedAssembly = Assembly.Load(assemblyName);...阅读全文
我有我使用的数据绑定WinForm应用程序收集的数据。一切看起来正常,只是,我要链接的属性与文本编辑使用字符串:I have my winform application gathering data using databinding. Everything looks fine except that I hav...阅读全文
我如何告诉LINQ数据上下文忽略任何特定的属性,或者所有的只读属性,绑定一个结果集对象时?我正在与一些T-SQL语句,很难使用LINQ EX preSS,所以我使用的数据上下文的executeQuery方法通过直T-SQL数据库。如果我的类T有任何只读属性,我得到的运行时异常时的数据上下文试图设置其属性和失败,因为没有...阅读全文
下面是一个简单的例子来清除我的意图。 here is a simple example to clear my intentions. class A {public int Idpublic string Namepublic string Hashpublic C c}class B {public in...阅读全文
还有,如果模式=单向没有问题,但我有这样的:类别:There's no problem if Mode=OneWay, but I have this:Class:namespace Halt{public class ProjectData{public static string Username {ge...阅读全文
我是相当新的思考,我想知道,如果可能的话,如何创建一个类的实例,然后给类添加属性,设置这些属性,然后再阅读。我没有任何code,因为我不知道如何下手要对此。 C#或VB是好的。I am fairly new to reflection and I would like to know, if possible, ho...阅读全文
考虑到相当静态的数据不应该被重新评估,但缓存,而不是,我不知道是否有可能使用反射一旦获得类的属性,然后将它们缓存,这样我可以动态评估对象的属性和读/赋值,但不是每次我这样做,有思考的开销。这是可能的(样品code?)?considering that fairly static data should not be...阅读全文