C#.NET下的computer类

jammy_hom 2010-07-20 10:36:27
在网上看到一段VB的代码。用C#写的时候发现编译Microsoft.VisualBasic.Devices.Computer pc = new Microsoft.VisualBasic.Devices.Computer (); 这个语句 会报错如下
错误 命名空间“Microsoft.VisualBasic”中不存在类型或命名空间名称“Devices”(是缺少程序集引用吗?) D:\我的文档\Visual Studio 2008\Projects\PortTest\Form1.cs

在MSDN下都能发现这个C#类,怎么会这样,哪位高手指点下
...全文
384 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
jammy_hom 2010-07-20
  • 打赏
  • 举报
回复
项目--》》右键--》》添加引用->>.net->>Microsoft.VisualBasic,Microsoft.VisualBasic.dll
wuyq11 2010-07-20
  • 打赏
  • 举报
回复
添加Microsoft.VisualBasic引用,使用没问题
兔子-顾问 2010-07-20
  • 打赏
  • 举报
回复
3楼真大
loveheye 2010-07-20
  • 打赏
  • 举报
回复
顶2楼
兔子-顾问 2010-07-20
  • 打赏
  • 举报
回复
添加Microsoft.VisualBasic.dll文件引用。
zzyhuian06142 2010-07-20
  • 打赏
  • 举报
回复
有添加这个饮用每
出版社: Apress; 5 平装: 1752页 正文语种: 英语 以下是关于该书的英文介绍 ------------------------------------------------------------- The first edition of this book was released at the 2001 Tech-Ed conference in Atlanta, Georgia. At that time, the .NET platform was still a beta product, and in many ways, so was this book. This is not to say that the early editions of this text did not have merit—after all, the book was a 2002 Jolt Award finalist and it won the 2003 Referenceware Excellence Award. However, over the years that author Andrew Troelsen spent working with the common language runtime (CLR), he gained a much deeper understanding of the .NET platform and the subtleties of the C# programming language, and he feels that this fifth edition of the book is as close to a “final release” as he’s come yet. This new edition has been comprehensively revised and rewritten to make it accurately reflect the C# 4 language specification for the .NET 4 platform. You’ll find new chapters covering the important concepts of dynamic lookups, named and optional arguments, Parallel LINQ (PLINQ), improved COM interop, and variance for generics. If you’re checking out this book for the first time, do understand that it's targeted at experienced software professionals and/or graduate students of computer science (so don't expect three chapters on iteration or decision constructs!). The mission of this text is to provide you with a rock-solid foundation in the C# programming language and the core aspects of the .NET platform (assemblies, remoting, Windows Forms, Web Forms, ADO.NET, XML web services, etc.). Once you digest the information presented in these 25 chapters, you’ll be in a perfect position to apply this knowledge to your specific programming assignments, and you’ll be well equipped to explore the .NET universe on your own terms. What you’ll learn Be the first to understand the .NET 4 platform and Visual C# 2010. Discover the ins and outs of the leading .NET technology. Learn from an award-winning author who has been teaching the .NET world since version 1.0. Find complete coverage of the WPF, WCF, and WF foundations that support the core .NET platform. Who is this book for? This book is for anyone with some software development experience who is interested in the new .NET Framework 4 and the C# language. Whether you are moving to .NET for the first time or are already writing applications on .NET 2.0 or .NET 3.5, this book will provide you with a comprehensive grounding in the new technology and serve as a complete reference throughout your coding career. About the Apress Pro Series The Apress Pro series books are practical, professional tutorials to keep you on and moving up the professional ladder. You have gotten the job, now you need to hone your skills in these tough competitive times. The Apress Pro series expands your skills and expertise in exactly the areas you need. Master the content of a Pro book, and you will always be able to get the job done in a professional development project. Written by experts in their field, Pro series books from Apress give you the hard–won solutions to problems you will face in your professional programming career.
C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development – Third Edition 版本: Create powerful applications with .NET Standard 2.0, ASP.NET Core 2.0, … Visual Studio 2017 or Visual Studio Code By 作者: Mark J. Price ISBN-10 书号: 1788398076 ISBN-13 书号: 9781788398077 Edition 版本: 3rd Revised edition 出版日期: 2017-11-30 pages 页数: 786 C# 7.1 and .NET Core 2.0 – Modern Cross-Platform Development, Third Edition, is a practical guide to creating powerful cross-platform applications with C# 7.1 and .NET Core 2.0. It gives readers of any experience level a solid foundation in C# and .NET. The first part of the book runs you through the basics of C#, as well as debugging functions and object-oriented programming, before taking a quick tour through the latest features of C# 7.1 such as default literals, tuples, inferred tuple names, pattern matching, out variables, and more. After quickly taking you through C# and how .NET works, this book dives into the .NET Standard 2.0 class libraries, covering topics such as packaging and deploying your own libraries, and using common libraries for working with collections, performance, monitoring, serialization, files, databases, and encryption. The final section of the book demonstrates the major types of application that you can build and deploy cross-device and cross-platform. In this section, you’ll learn about websites, web applications, web services, Universal Windows Platform (UWP) apps, and mobile apps. By the end of the book, you’ll be armed with all the knowledge you need to build modern, cross-platform applications using C# and .NET. Contents 1: HELLO, C#! WELCOME, .NET CORE! 2: PART 1 – C# 7.1 3: SPEAKING C# 4: CONTROLLING THE FLOW AND CONVERTING TYPES 5: WRITING, DEBUGGING, AND TESTING FUNCTIONS 6: BUILDING YOUR OWN TYPES WITH OBJECT-ORIENTED PROGRAMMING 7: IMPLEMENTING INTERFACES AND INHERITING CLASSES 8: PART 2 – .NET CORE 2.0 AND .NET STANDARD 2.0 9: UNDERSTANDING AND PACKAGING .NET STANDARD TYPES 10: USING COMMON .NET STANDARD TYPES 11: WORKING WITH FILES, STREAMS, AND SERIALIZATION 12: PROTECTING YOUR DATA AND APPLICATIONS 13: WORKING WITH DATABASES USING ENTITY FRAMEWORK CORE 14: QUERYING AND MANIPULATING DATA USING LINQ 15: IMPROVING PERFORMANCE AND SCALABILITY USING MULTITASKING 16: PART 3 – APP MODELS 17: BUILDING WEB SITES USING ASP.NET CORE RAZOR PAGES 18: BUILDING WEB SITES USING ASP.NET CORE MVC 19: BUILDING WEB SERVICES AND APPLICATIONS USING ASP.NET CORE 20: BUILDING WINDOWS APPS USING XAML AND FLUENT DESIGN 21: BUILDING MOBILE APPS USING XAML AND XAMARIN.FORMS 22: SUMMARY 23: ANSWERS TO THE TEST YOUR KNOWLEDGE QUESTIONS What You Will Learn Build cross-platform applications using C# 7.1 and .NET Core 2.0 Explore ASP.NET Core 2.0 and learn how to create professional websites, services, and applications Improve your application’s performance using multitasking Use Entity Framework Core and LINQ to query and manipulate data Master object-oriented programming with C# to increase code reuse and efficiency Familiarize yourself with cross-device app development using the Universal Windows Platform Protect and manage your files and data with encryption, streams, and serialization Get started with mobile app development using Xamarin.Forms Preview the nullable reference type feature of C# 8 Authors Mark J. Price Mark J. Price is a Microsoft Certified Solutions Developer (MCSD), Microsoft Specialist: Programming in C#, and Episerver Certified Developer, with more than 20 years of educational and programming experience. Since 1993, Mark has passed more than 80 Microsoft programming exams, and he specializes in preparing others to pass them too. His students range from professionals with decades of experience to 16-year-old apprentices with none. He successfully guides all of them by combining educational skills with real-world experience in consulting and developing systems for enterprises worldwide. Between 2001 and 2003, Mark was employed full-time to write official courseware for Microsoft in Redmond, USA. His team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft, he taught “train-the-trainer” classes to get Microsoft Certified Trainers up-to-speed on C# and .NET. Currently, Mark creates and delivers classroom and e-learning training courses for Episerver’s Digital Experience Cloud, the best .NET CMS for Digital Marketing and E-commerce. He is an Episerver Certified Developer (ECD) on Episerver CMS. In 2010, Mark studied for a Postgraduate Certificate in Education (PGCE). He taught GCSE and A-Level mathematics in two London secondary schools. He holds a Computer Science BSc Hons. degree from the University of Bristol, UK.

110,579

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧