English 中文(简体)
《劳动法》的《婚姻法》中使用的“贱民”财产是什么?
原标题:What is the AttributeType property used for in the CodeDOM class CodeAttributeDeclaration?
  • 时间:2010-11-25 07:21:36
  •  标签:
  • .net
  • codedom

I m doing code generation, creating a custom attribute to decorate a class using CodeDOM, targetting C# and VB. To do this, I m creating an instance of the CodeAttributeDeclaration class.

目前,Im正在确定AtributeType的财产以及名称,但似乎并未使用。 相反,名称财产都是用来提出属性声明的。

我失踪了吗? 这一财产是怎样使用的?

最佳回答

这是一种替代办法(我相信,曾经有过一段时间的《南非法典》),你可以使用名称或类型来界定属性声明。 如果两者都有,将(显然)使用名称。 http://msdn.microsoft.com/en-us/library/txasczbb%28v=VS.90%29.aspx” rel=“nofollow”

反之,它指出,确定姓名总是迫使AttributeType改名,而采用“类型”的构造者也总是把名称定在一边,因此甚至不能把人排在一边。

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签