دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش:
نویسندگان: Vogel. Peter
سری: Addison-Wesley Microsoft technology series
ISBN (شابک) : 9780321606785, 0321606787
ناشر: Addison-Wesley Professional
سال نشر: 2010
تعداد صفحات: 529
زبان: English
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 5 مگابایت
در صورت تبدیل فایل کتاب Practical code generation in .NET: covering Visual Studio 2005, 2008, and 2010 به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب تولید کد عملی در دات نت: پوشش ویژوال استودیو 2005، 2008 و 2010 نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
هنگامی که این مهارت در منطقه راحتی روزمره شما قرار گیرد، بهره وری شما را افزایش می دهد و ارزش شما را برای تیم شما افزایش می دهد. من شما را تشویق می کنم که تکنیک های ذکر شده در این کتاب را به مجموعه ابزار خود اضافه کنید و از آنها برای توسعه میز کار ابزارهای مولد خود استفاده کنید. با انجام این کار، من مطمئن هستم که توانایی های خود را بهبود خواهید بخشید، و علاوه بر آن، از انجام این کار لذت ببرید. \"از پیشگفتار گرت جونز، معمار توسعه دهنده، ویژوال استودیو\"(r)،\" مایکروسافت\" از ابزارهای داخلی تولید کد ویژوال استودیو برای نوشتن نرم افزار بهتر سریعتر استفاده کنید. کیفیت کد و قابلیت نگهداری، ترویج استفاده مجدد، و به شما کمک می کند تا بهترین شیوه ها را در سراسر سازمان توسعه خود گسترش دهید. دات نت و ویژوال استودیو حاوی ابزارهای قدرتمند و تولید کد زیادی هستند - و این کتاب به شما نشان می دهد که چگونه با همه آنها موفق شوید. با \"تولید کد عملی در دات نت\"، زمان کمتری را صرف نوشتن کدهای یکنواخت و تکراری کنید -- زمان بیشتری را برای رسیدگی به بخش های مشکل زا باقی می گذارید! مایکروسافت MVP Peter Vogel تولید کد را با ویژوال استودیو 2010، 2008 و 2005 و همچنین تمامی نسخه های اخیر دات نت، از جمله .NET 4.0 پوشش می دهد. زمانی یاد خواهید گرفت که ایجاد کد منطقی باشد و چگونه راه حل هایی را طراحی کنید که بر اساس مهارت ها و منابعی که قبلاً دارید، طراحی کنید. Vogel که برای برنامه نویسان با تجربه می نویسد، نحوه تولید کد قابل اعتماد با استفاده از کد رویه ای، افزودنی های ویژوال استودیو، XML، فایل های پیکربندی و موارد دیگر را نشان می دهد - از جمله فناوری ابتکاری CodeDOM مایکروسافت برای تولید کد در چندین زبان. او همه چیز را در سه مطالعه موردی کامل و تمام فصل گرد هم آورده است. پوشش شامل درک ساختار راه حل های تولید کد دات نت و بهترین روش ها برای معماری آنها است. ایجاد افزونه های ویژوال استودیو که به سرعت تولید کد را در فعالیت های روزمره ادغام می کند. استفاده از اشیا و روش ها برای افزودن یا حذف اجزای پروژه استفاده از درج متن در تولید کد با استفاده از هر ابزاری -- حتی توابع مدیریت رشته استاندارد کار با ویژگی های خاص سی شارپ، ویژوال بیسیک دات نت و ASP.NET تولید کد مختصر تر با جعبه ابزار تبدیل الگوی متن جدید دات نت (T4) ساخت راه حل های تولید کد با قالبها، ویژگیها و ابزارهای سفارشی ویژوال استودیو توزیع راهحلهای تولید کد\"
Once this skill is within your everyday comfort zone, it will give your productivity a boost and increase your value to your team. I encourage you to add the techniques outlined in this book to your toolset and to use them to develop your own workbench of generative tools. In doing so, I m confident you ll improve your capabilities, and what s more, have fun doing so. " From the Foreword by Gareth Jones, Developer Architect, Visual Studio"(r)," Microsoft" Enlist Visual Studio s Built-in Code Generation Tools to Write Better Software Faster Automatic code generation can dramatically increase your productivity, improve code quality and maintainability, promote reuse, and help you extend best practices throughout your development organization. .NET and Visual Studio contain many powerful, code-generation tools--and this book shows you how to succeed with all of them. With " Practical Code Generation in .NET ", spend less time writing monotonous, repetitive code--leaving more time to address troublesome areas! Microsoft MVP Peter Vogel covers code generation with Visual Studio 2010, 2008, and 2005, as well as all recent versions of .NET, including .NET 4.0. You ll learn when enlisting code generation makes sense and how to design solutions that build on the skills and resources you already have. Writing for experienced programmers, Vogel shows how to generate reliable code using procedural code, Visual Studio add-ins, XML, configuration files, and more--including Microsoft s innovative CodeDOM technology for generating code in multiple languages. He brings everything together in three complete, chapter-length case studies. Coverage includes Understanding the structure of .NET code-generation solutions and best practices for architecting them Creating Visual Studio add-ins that quickly integrate code generation into day-to-day activities Using objects and methods to add or remove project components Using text insertion to generate code using any tool--even standard string handling functions Working with the specific features of C#, Visual Basic .NET, and ASP.NET Generating more concise code with .NET s new Text Template Transformation Toolkit (T4) Building code-generation solutions with Visual Studio templates, attributes, and custom tools Distributing code-generation solutions"
Cover......Page 1
Contents......Page 5
Foreword......Page 15
Preface......Page 17
Acknowledgments......Page 21
About the Author......Page 22
Chapter 1 Introducing Code Generation......Page 24
Copy-and-Paste......Page 25
General-Purpose Code......Page 26
Benefits of Code Generation......Page 27
When to Use Code Generation......Page 30
Best Practices in Code-Generation Solutions......Page 33
Code-Generation Process......Page 34
Code-Generation Tools......Page 35
Model-Driven Architecture......Page 37
Declarative Programming......Page 40
PART I: TOOLS......Page 42
Chapter 2 Integrating with Visual Studio......Page 44
Design-Time Integration......Page 45
Starting Your Visual Studio Add-In......Page 46
Creating a Menu-Driven User Interface......Page 59
Working with Visual Studio Windows......Page 72
Responding to Events......Page 81
Accepting Input......Page 88
Integrating with Visual Studio......Page 99
Chapter 3 Manipulating Project Components......Page 100
The Code Model......Page 101
Managing Projects and Solutions......Page 103
Generating Code......Page 109
Modifying and Analyzing Components......Page 133
Processing Components in a File......Page 137
Working with Retrieved Elements......Page 141
Working with the CodeType Objects......Page 144
Storing Information......Page 149
Working with Project Components......Page 151
Chapter 4 Modifying Code in the Editor......Page 152
Opening and Closing Documents and TextDocuments......Page 153
Backing Out Changes......Page 156
Creating EditPoints to Access Text......Page 158
Retrieving Information......Page 162
Accessing Text with an EditPoint......Page 163
Working with Bookmarks......Page 170
Inserting, Replacing, and Formatting Text......Page 172
Inserting and Reading Text......Page 178
Chapter 5 Supporting Project-Specific Features......Page 180
Introducing the VSLangProj Libraries......Page 181
Managing a “Projectless” Website......Page 193
Project-Specific Features......Page 203
Chapter 6 Generating Language-Neutral Code......Page 204
A Comprehensive Example......Page 205
Declarations......Page 212
Defining Classes......Page 220
Class Members......Page 223
Statements and Expressions......Page 239
Code Structures......Page 251
When All Else Fails: Code Snippets......Page 258
Other Code Features......Page 261
Code Providers......Page 266
Generating Code......Page 270
Chapter 7 Generating Code from Templates with T4......Page 272
T4 in Visual Studio......Page 274
T4 Code-Generation Strategies......Page 275
Creating a T4 Template......Page 277
Extending T4......Page 288
Invoking Templates from Code......Page 293
Leveraging Templates......Page 306
Chapter 8 Other Tools: Templates, Attributes, and Custom Tools......Page 308
Item Templates......Page 309
Attributes......Page 328
Generating Code from Custom File Formats......Page 338
Reviewing the Tools......Page 352
PART II: CASE STUDIES......Page 354
Chapter 9 Case Study: Generating a Connection String Manager......Page 356
Defining the Problem......Page 357
Setting Up the Add-In......Page 360
Creating the Code Generator......Page 366
Customizing the Template......Page 373
Generating Code......Page 378
Reading Input......Page 379
Notifying the Developer......Page 382
Supporting Customization......Page 385
Tying Generation to Events......Page 394
Generating a Simple Class......Page 398
Chapter 10 Case Study: Generating Validation Code......Page 400
Defining the Problem......Page 401
Starting the Code-Generation Project......Page 411
Wiring Up the Add-In......Page 412
Starting the Generation Utility......Page 418
Defining a Template......Page 420
Generating Code......Page 423
Specifying Code with the CodeDom......Page 434
Supporting “Projectless” Websites......Page 444
Handling Errors......Page 448
Building a Complete Code-Generation Solution......Page 449
Chapter 11 Case Study: Generating Data-Conversion Code......Page 450
Defining the Problem......Page 451
Creating the Designer......Page 455
Enhancing Model Validation......Page 473
Generating Code......Page 477
Distributing Your Designer......Page 481
Visual Studio 2010 Additions......Page 488
Capturing Inputs......Page 489
PART III: APPENDIXES......Page 490
Appendix A: Generating Menu Names......Page 491
Appendix B: Options Dialog Categories, Subcategories, and Properties......Page 492
Integrating Code-Generation Classes......Page 493
Creating the .vscontent File......Page 504
A Complete Example......Page 508
Installing the Solution......Page 509
A......Page 510
C......Page 511
D......Page 515
E......Page 516
F......Page 517
H......Page 518
I......Page 519
N......Page 520
P......Page 521
Q-R......Page 522
S......Page 523
T......Page 524
V......Page 525
W-X-Y-Z......Page 527