我在.NET中想要的功能列表 [英] my list of wanted features in .NET

查看:47
本文介绍了我在.NET中想要的功能列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是从我的实验室中提取的.NET中我想要的功能列表

笔记本。如果他们中的一些已经在那里,也许有人可以指出它们给我了。如果你有任何积极或消极的意见,我会听取它的意见。谢谢。它们没有特别的顺序


1. GDI + :: Graphics -draw a super ellipse

2.添加类似于Obsolete的属性用于标记危险,

高级,或要求功能上的先决条件。

3.为PropertyInfo添加优先级功能

4.添加更复杂的后期构建多项目的事件处理

协调

5.有一个代表稀疏二维阵列的内置集合。

6.添加一些基本的2,3,4元组的泛型;我最终过度使用了

KeyValuePair

7. GDI + :: Graphics - 为绘图/填充添加角度参数重载

函数因此,当我想要这个功能时,我不必调用翻译和旋转。

8.添加一个IDE选项来查找所有继承者(实际上,有很多

的Resharper功能很好内置,但如果

你可以偷一些搜索......)

9.添加IDE选项以将当前文件同步到解决方案和类

视图(我的项目中包含数千个文件)

10.进行自定义绘制树木和属性更容易(我不知道

除了它们有点痛苦之外还要添加什么细节

目前;我需要一棵树有两个选择:叶子和

当前根节点;这是一个皇家的痛苦,我永远不会得到双倍的

缓冲它)

11.添加editabl e ListView

12.为通用集合添加交集函数

13. GDI + :: Graphics -Point,Rectangle应该有运算符重载

for add /减去/等。

14. GDI + :: Graphics -LinearGradient应该处理负值$

15.我需要一个is namespace功能性

16. ICloneable应该是通用的

17.我需要一个where is primitive

18.我认为其中是List<>" (又名未指定类型)可能有用

19. PropertyValueChanged事件应该有办法恢复价值

20.添加目录支持GZIP的东西

21. IDE搜索同一对象上的其他属性引用

22.修复透明控件上的双缓冲

23.添加一些方法来指定多个名称空间单个对象

声明

24. GDI + ::图形 - 应该是一种从

(alpha)位掩码构建Region的方法

25. GDI + :: Graphics - 添加一种方法来膨胀封闭的图形路径

Here is a list of features I''ve wanted in .NET as pulled from my lab
notebook. If some of them are already there, maybe somebody could point
them out to me. If you have an opinion positive or negative on any, I''d
like to hear it. Thanks. They are in no particular order

1. GDI+::Graphics -draw a super ellipse
2. Add an attribute(s) similar to Obsolete for marking Dangerous,
Advanced, or requiring Prerequisites on functions.
3. Add functions for Priority to PropertyInfo
4. Add more complex post-build event handling for multi-project
coordination
5. Have a built in collection that represents a sparse 2d array.
6. Add some basic generics for tuples of 2,3,4; I end up way overusing
the KeyValuePair
7. GDI+::Graphics -Add an angle parameter overload to the draw/fill
functions that so that I don''t have to call translate and rotate when I
want that functionality.
8. Add an IDE option to find all inheritors (actually, there is a lot
of Resharper functionality that would be nice to have built in but if
you could steal just a few of the searches...)
9. Add an IDE option to sync the current file to the solution and class
views (my projects have thousands of files in them)
10. Make the custom drawn trees and properties easier (I don''t know
what specifics to add for this other than they are a bit of a pain
currently; I needed a tree that had dual selection: the leaf and the
current root node; that was a royal pain and I never could get double
buffering on it)
11. Add an editable ListView
12. Add intersection functions for generic collections
13. GDI+::Graphics -Point, Rectangle should have operator overloads
for add/subtract/etc.
14. GDI+::Graphics -LinearGradient should handle negative values in
width, height
15. I need an "is namespace" functionality
16. ICloneable should be a generic
17. I need a "where is primitive"
18. I think a "where is List<>" (aka unspecified type) could be useful
19. PropertyValueChanged event should have a way to revert the value
20. Add directory support to the GZIP stuff
21. IDE search of other property references on the same object
22. Fix the double buffering on transparent controls
23. Add some way to specify multiple namespaces for a single object
declaration
24. GDI+::Graphics -There should be a way to build a Region from a
(alpha) bitmask
25. GDI+::Graphics -Add a way to inflate a closed graphics path

推荐答案

> 2。添加类似于Obsolete的属性以标记Dangerous,
>2. Add an attribute(s) similar to Obsolete for marking Dangerous,

> Advanced,或要求函数的先决条件。
>Advanced, or requiring Prerequisites on functions.



那么在IDE中隐藏高级

成员的EditorBrowsable属性。

Well there''s the EditorBrowsable attribute for hiding "advanced"
members in the IDE.


> 3。为PropertyInfo添加优先级函数
>3. Add functions for Priority to PropertyInfo



属性的优先级是什么意思?

And what would be the meaning of the priority of a property?


> 4。为多项目添加更复杂的构建后事件处理
协调
>4. Add more complex post-build event handling for multi-project
coordination



MSBuild非常易于扩展。

MSBuild is very extensible.


> 11。添加可编辑的ListView
>11. Add an editable ListView



现有的ListView是否可编辑?

Isn''t the existing ListView editable?


> 15。我需要一个is namespace功能
>15. I need an "is namespace" functionality



哪里?在IDE,类库或语言中?

功能会做什么?

Where? In the IDE, class libraries or in a language? What would the
feature do?


> 16。 ICloneable应该是通用的
>16. ICloneable should be a generic



这并没有解决更大的问题,即不定义是否要执行深度或浅层克隆。

That doesn''t solve the bigger problem of not defining whether to
perform a deep or shallow clone.


> 17。我需要一个在哪里是原始的
>17. I need a "where is primitive"



你的意思是确定一个类型是否是原始的?有类型.IsPrimitive

如果那就是你要找的东西。

You mean to determine if a type is primitive? There''s Type.IsPrimitive
if that''s what you''re looking for.


> 18。我认为在哪里是List<> (又名未指定类型)可能有用
>18. I think a "where is List<>" (aka unspecified type) could be useful



你可以用反射来做到这一点。

You can do that with reflection.


> 21 。 IDE搜索同一对象上的其他属性引用
>21. IDE search of other property references on the same object



我不明白你的意思。

I don''t understand what you mean by this.


> 23。添加一些方法为单个对象指定多个名称空间
声明
>23. Add some way to specify multiple namespaces for a single object
declaration



不确定这里的含义。

Mattias


-

Mattias Sj?gren [C#MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com

请回复到新闻组。

Not sure what you mean here either.
Mattias

--
Mattias Sj?gren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


此外,VS.Net目前(至少早在2002年)有一个选项

称为跟踪解决方案资源管理器中的活动项执行#9的文件部分

(虽然它没有突出显示当前的类;事实上,VS'的类

视图是我认为只有用的内容因为它告诉我什么时候我已经错误地命名了一些名称空间,所以我甚至不需要按类跟踪)
Also, VS.Net currently (and at least as far back as 2002) has an option
called "Track Active Item in Solution Explorer" that performs the file part
of #9 (although it does not highlight the current class; in fact, VS''s Class
View is something I find only useful insofar as it shows me when I''ve
misnamed some namespaces, so I never even need to track by class)


3。为PropertyInfo添加优先级函数
3. Add functions for Priority to PropertyInfo

一个属性的优先级是什么意思?
And what would be the meaning of the priority of a property?



因为几个月前我写下来了,我不确定我是否完全记得这个问题。我基本上想要一种干净的方式来处理同一类型的多个

属性,其中只有一个是预期的。

GetCustomAttributes返回所有给定类型。我只使用它返回的第一个

。这是常见的吗?

As it was a few months back I wrote that down, I''m not sure I remember
the issue entirely. I basically wanted a clean way to handle multiple
attributes of the same type where only one was expected.
GetCustomAttributes returns all of a given type. I just use the first
one it returns. Is that common?


4.为多项目添加更复杂的构建后事件处理

协调
4. Add more complex post-build event handling for multi-project
coordination



MSBuild是非常可扩展的。

MSBuild is very extensible.



我承认我想要内置Nant功能。为我的post-build nant脚本处理

依赖项是一件痛苦的事情并让它运行

总是(我现在这样做)减慢了速度。

I confess that I want Nant functionality built-in. Handling the
dependencies for my post-build nant script is a pain and making it run
always (which I currently do) slows things down.


11.添加可编辑的ListView
11. Add an editable ListView



现有的ListView是否可编辑?

Isn''t the existing ListView editable?



我想我的意思是单元格中的文本编辑。

I think I meant text-editing in the cells.


15.我需要一个is namespace。功能
15. I need an "is namespace" functionality



哪里?在IDE,类库或语言中?

功能会有什么作用?

Where? In the IDE, class libraries or in a language? What would the
feature do?



我想要一个运行时操作符来告诉我对象是否在命名空间中。

该函数类似于IsInheritableFrom函数。

I want a runtime operator that tells me if an object is in a namespace.
The function would be similar to the IsInheritableFrom function.


16. ICloneable应该是通用的
16. ICloneable should be a generic



那不是'解决更大的问题,即不确定是否要执行深度或浅层克隆。

That doesn''t solve the bigger problem of not defining whether to
perform a deep or shallow clone.



True。把它们放到列表中。

True. Tack those onto the list.


17.我需要一个where is primitive
17. I need a "where is primitive"



你的意思是确定一个类型是否是原始的?如果你正在寻找的话,那就是Type.IsPrimitive


You mean to determine if a type is primitive? There''s Type.IsPrimitive
if that''s what you''re looking for.



bywhere我的意思是C#关键字where。限制我的仿制药,Type.IsPrimitive并没有帮助我。

By "where" I mean the C# keyword "where". Type.IsPrimitive doesn''t help
me with restricting my generics.


18.我认为awhere is List<> (又名未指定类型)可能有用
18. I think a "where is List<>" (aka unspecified type) could be useful



你可以用反射做到这一点。

You can do that with reflection.



bywhere我的意思是C#关键字where。我想你很少会坚持要继承一些东西或者List<而不是

IList的实例,但这可能会有用。实际上,也许通常会强制通用的继承人是有用的。

By "where" I mean the C# keyword "where". I guess it is rare that you
insist something be inherited from or an instance of List<rather than
IList, but maybe that would be useful. Actually, maybe it would be
useful to force that a generic be an inheritor in general.


21. IDE搜索同一对象上的其他属性引用
21. IDE search of other property references on the same object



我不明白你的意思。

I don''t understand what you mean by this.



IDE中的FindReferences函数可以在私有的
成员的函数引用中调用,但不限于引用

私有成员。

The FindReferences function in the IDE can be called on a private
member''s function reference, but not limited to references of that
private member.


23.添加一些方法为单个对象指定多个名称空间

声明
23. Add some way to specify multiple namespaces for a single object
declaration



不确定你的意思。

Not sure what you mean here either.



名称空间bob,larry {

class blah {}

}


在其他地方你可能(可能)需要指定完整的命名空间

避免模棱两可的引用。我认为重构多个解决方案中引用的
项目会很有用。

namespace bob, larry {
class blah {}
}

Elsewhere you would (possibly) need to specify the full namespace to
avoid ambiguous reference. I think it would be useful for refactoring
projects that are referenced in multiple solutions.


这篇关于我在.NET中想要的功能列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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