System.Windows.Forms.Dll汇编,获取我可以在Windows窗体应用程序中使用的列表。 [英] System.Windows.Forms.Dll Assembly, Get A List Of What I Can Use In Windows Forms Application.

查看:138
本文介绍了System.Windows.Forms.Dll汇编,获取我可以在Windows窗体应用程序中使用的列表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows窗体进行编码,有很多引用,例如:

I code using Windows Forms, there are lots of references like:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;



但这不是全部。

现在,我的目标是找到我可以在Windows Forms技术中使用的所有引用来制作应用程序。我知道我不能使用所有.Net Framework。

其中一个用户建议使用Assembly加载System.Windows.Forms.dll程序集并使用它。

结果是下一个代码:


But that is not all of them.
Now, my goal is to find all the references i can use in Windows Forms technology to make apps. I know i can not use all the .Net Framework.
One of the users advised to use Assembly to load "System.Windows.Forms.dll" assembly and i used it.
The result is the next code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;

namespace _123_Assembly
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            Assembly assembly = Assembly.LoadFrom(@"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Windows.Forms.dll");
            Type[] types = assembly.GetTypes();

            string data = String.Empty;

            foreach (Type type in types)
            {
                data += type.ToString() + "\r\n";
                foreach (MemberInfo member in type.GetMembers())
                {
                    data += "                " + member.ToString() + "\r\n";
                }
            }

            System.IO.StreamWriter writer = new System.IO.StreamWriter(@"C:\Users\user\Desktop\Writer.txt");
            writer.Write(data);
            writer.Close();
        }
    }
}





我把所有内容写入你可以在线打开的文本文件中:

https://drive.google.com/file/d/ 0B4MmPdhmZzQAampsUGlvLXVlaVU / view?usp = sharing [ ^ ]



我可以在.Net Framework的Windows窗体应用程序中使用它吗?

我认为不,因为我找不到,例如,跟随引用和许多其他人:



I wrote everything into a text file you can open online:
https://drive.google.com/file/d/0B4MmPdhmZzQAampsUGlvLXVlaVU/view?usp=sharing[^]

Is it all what i can use in my Windows Forms application from .Net Framework?
I think no, because i could not find, for example, following references and many others:

using System.Drawing;
using System.Drawing.Drawing2D;





我知道它让你烦恼,但这是我的学习曲线,我总是用我找到我搜索的内容而且这个案例也不例外。

我读了你在最后一个帖子中写的内容,你真的很明智人们,但有时很难帮助学生。

谢谢。





I know it is annoying you, but it is my learning curve, i always used finding what i searched for and this case is not an exception.
I read what you wrote in the last thread, you are really wise people, but it is hard sometimes to help students.
Thank you.

引用:

您可以使用语音识别是System.Windows.Forms,但是您想要包含它吗?如果你考虑一下,你就会明白自己没有问过什么。

You can use speech recognition is System.Windows.Forms, but do you want to include it? If you think about it, you will understand yourself that you don't asking about anything certain.



我知道,我可以使用任何使用Platform Invoke在C ++中创建的.dll文件,我可以使用3d派对库。

但据我所知,当我打开我的项目时,有一些基本参考。


I know, i can use any .dll file made in C++ using Platform Invoke, i can use 3d party libraries.
But as i understand when i open my project, there are certain base references.

推荐答案

为什么不学习使用免费提供的工具?整个列表位于: http://msdn.microsoft.com/en -us / library / gg145045(v = vs.110).aspx [ ^ ]。
Why not learn to use the tools that are freely available? The entire list is at: http://msdn.microsoft.com/en-us/library/gg145045(v=vs.110).aspx[^].


这篇关于System.Windows.Forms.Dll汇编,获取我可以在Windows窗体应用程序中使用的列表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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