مشخصات فیلم
-
6334
-
2711
-
0
-
0.0
-
0
فیلم آموزش سی شارپ Pluralsight Working with Nulls in C Sharp
Pluralsight Working with Nulls in C Sharp
مدرس: Jason Roberts
فیلم Pluralsight Working with Nulls in C Sharpبه شما نحوه برخورد و مدیریت مقادیر Null که در برنامه هایتان رخ میدهد را آموزش می دهد.
مقادیرnull غیرمنتظره و خطاهای NullReferenceExceptions که در زمان اجرای برنامه رخ می دهند، می توانند بسیار مشکل ساز بوده، سبب اتلاف وقت و تماس های متعدد کاربران برای پشتیبانی برنامه و تعمیر آن شود. در فیلم آموزش c#حاضر کار با مقادیر Null در Working with Nulls in C#، با سناریوهای مختلف که در آن ممکن است توسعه دهنده با مقادیر null مواجه شده و نیز نحوه ی مدیریت آن آشنا خواهید شد. ابتدا نکات، ترفندها و مباحث اصلی کار با آن ها را آموخته و سپس با علت دریافت مقادیر NULL و نحوه ی مدیریت آن ها آشنا خواهید شد. به دنبال آن فرق بین / reference type مقادیر ارجاعی و متغیرهایی که صرفا کپی از مقادیر آن ها در اختیار شما قرار می گیرد / value type را خواهید آموخت.
همچنین چگونگی استفاده از عملگرهای مختلف C# جهت بررسی و دستکاری مقادیر Null را به شما آموزش خواهیم داد. با مشاهده ی کل این فیلم آموزش #C یاد می گیرید که چگونه از دیدگاه انتزاعی تر (در سطح abstraction layer ) به مقادیر null در کد شی گرا اپلیکیشن خود نگاه کنید. بعلاوه در انتهای کورس آموزشی حاضر با انواع آبجکت در C#، نحوه ی ایجاد مقادیر nullable از نوع value type، استفاده از عملگرهای C# برای کار با مقادیر NULL با تعداد خط کد کمتر، و نحوه ی پیاده سازی الگو توسعه ی Null Object در پروژه جهت حذف نیاز به نوشتن کدهای تکراری بررسی کننده ی صحت وجود مقادیر null در برنامه کاملا آشنا می شوید.
سرفصل های دوره:
- کار با مقادیر از نوع value type و String که null پذیر هستند
- شرح مقادیر از نوع value type و reference type
- مقادیر بولی null پذیر (Nullable Boolean Values)
- دسترسی به مقادیر null و بررسی صحت وجود مقادیر null در برنامه
- استفاده از خاصیت های (property) HasValue و Value
- شرح الگوی توسعه ی Null Object
- و…
Unexpected null values and NullReferenceExceptions can be a constant source of bugs resulting in wasted time and out of hours support callouts. In this course, Working with Nulls in C#, you're going to learn about the different ways that null values pop up in C# code and how to deal with them. First, you're going to learn the fundamentals of why you get null values and the difference between value and reference types. Next you'll learn how you can use the various C# operators to check for and manipulate nulls. Finally, you'll learn how to think about nulls at a higher abstraction level in your object-oriented code. By the end of this course, you'll understand the different types of objects in C#, how to correctly create nullable value types, how to use C# operators to work with nulls with fewer lines of code, and how to implement the Null Object pattern to remove the need to write repetitive null checking code. Course Overview 1m 16s Working with Nullable Value Types and Strings 30m 12s Introduction 1m 24s Course Outline 0m 59s Reference and Value Types Overview 3m 54s Using Magic Numbers for Null Value Types 9m 44s Introduction to Nullable Value Types with Nullable 1m 29s Refactoring to Nullable and Removing Magic Numbers 2m 57s C# Shorthand for Nullable Value Types 1m 34s Nullable Boolean Values 2m 51s Null and Empty Strings 1m 33s Checking for Null or Empty Strings 1m 48s Summary 1m 55s Accessing and Checking for Null Values 29m 53s Introduction 1m 42s More on Nullable 1m 26s Using the HasValue and Value Properties 3m 14s Using the GetValueOrDefault Method 2m 24s Comparing Nullable Instances 0m 52s Nullable Implicit and Explicit Conversions 1m 30s Overview of C# Null-checking Operators 1m 36s Using the Conditional Operator to Check for Nulls 2m 21s Using the Null-coalescing Operator 1m 35s Using the Null-conditional Operator 6m 53s Using the Null-conditional Operator with Null Array Values 2m 56s Thread-safe Null Delegate Invocation 0m 58s Summary 2m 22s Eliminating Null Reference Exceptions 23m 50s Introduction 1m 45s Introducing the Null Object Pattern 2m 19s Pattern Overview 2m 59s Example Code Without the Null Object Pattern 4m 2s Implementing the Null Object Pattern Using Interfaces 4m 1s Refactoring to a Base Class and Single Null Instance 5m 12s Considerations 1m 35s Summary 1m 53s