From 1d127bd3656121ab436428ceb212ca0aca6dba17 Mon Sep 17 00:00:00 2001 From: Jan Pluskal Date: Wed, 7 Feb 2024 12:42:29 +0100 Subject: [PATCH] chore: change all occurence of == null to is null --- Lectures/Lecture_02/Lecture.md | 2 +- .../_site/assets/sln/Tests/LinqGenerationOperationsTest.cs | 4 ++-- .../assets/sln/Tests/LinqGenerationOperationsTest.cs | 4 ++-- .../sln/EntityFramework/School.BL/Mappers/AddressMapper.cs | 2 +- .../sln/EntityFramework/School.BL/Mappers/CourseMapper.cs | 2 +- .../sln/EntityFramework/School.BL/Mappers/GradeMapper.cs | 2 +- .../sln/EntityFramework/School.BL/Mappers/StudentMapper.cs | 2 +- .../sln/EntityFramework/School.DAL/Factories/EntityFactory.cs | 2 +- .../EntityFramework/School.DAL/Repositories/RepositoryBase.cs | 2 +- .../sln/EntityFramework/School.BL/Mappers/AddressMapper.cs | 2 +- .../sln/EntityFramework/School.BL/Mappers/CourseMapper.cs | 2 +- .../sln/EntityFramework/School.BL/Mappers/GradeMapper.cs | 2 +- .../sln/EntityFramework/School.BL/Mappers/StudentMapper.cs | 2 +- .../sln/EntityFramework/School.DAL/Factories/EntityFactory.cs | 2 +- .../EntityFramework/School.DAL/Repositories/RepositoryBase.cs | 2 +- .../CookBook.App/Converters/NullToVisibilityConverter.cs | 2 +- .../ViewModels/IngredientAmountDetailViewModel.cs | 2 +- .../CookBook.App/ViewModels/IngredientDetailViewModel.cs | 2 +- .../CookBook/CookBook.App/ViewModels/MainViewModel.cs | 4 ++-- .../CookBook/CookBook.App/ViewModels/RecipeDetailViewModel.cs | 2 +- .../CookBookCI/CookBook/CookBook.App/Wrappers/ModelWrapper.cs | 2 +- .../CookBook/CookBook.App/Wrappers/RecipeWrapper.cs | 2 +- .../CookBook/CookBook.DAL/UnitOfWork/QueryableExtensions.cs | 2 +- .../AsynchronousProgramming.Samples/Properties/Annotations.cs | 2 +- .../Properties/Resources.Designer.cs | 2 +- .../AsynchronousProgramming.Samples/Properties/Annotations.cs | 2 +- .../Properties/Resources.Designer.cs | 2 +- 27 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Lectures/Lecture_02/Lecture.md b/Lectures/Lecture_02/Lecture.md index ba432280..3f5332ab 100644 --- a/Lectures/Lecture_02/Lecture.md +++ b/Lectures/Lecture_02/Lecture.md @@ -1153,7 +1153,7 @@ class Test { static void Display(string name) { - if(name == null) + if(name is null) throw new ArgumentNullException(nameof(name)); Console.WriteLine(name); } diff --git a/Lectures/Lecture_03/_site/assets/sln/Tests/LinqGenerationOperationsTest.cs b/Lectures/Lecture_03/_site/assets/sln/Tests/LinqGenerationOperationsTest.cs index 3f84b8fc..9054ea49 100644 --- a/Lectures/Lecture_03/_site/assets/sln/Tests/LinqGenerationOperationsTest.cs +++ b/Lectures/Lecture_03/_site/assets/sln/Tests/LinqGenerationOperationsTest.cs @@ -12,9 +12,9 @@ public void DefaultIfEmptyTest() int[] emptyInt = { }; string[] words = { "one", "two", "three" }; - Assert.True(emptyStr.DefaultIfEmpty().First() == null); + Assert.True(emptyStr.DefaultIfEmpty().First() is null); Assert.True(emptyInt.DefaultIfEmpty().First() == 0); - Assert.False(words.DefaultIfEmpty() == null); + Assert.False(words.DefaultIfEmpty() is null); } [Fact] diff --git a/Lectures/Lecture_03/assets/sln/Tests/LinqGenerationOperationsTest.cs b/Lectures/Lecture_03/assets/sln/Tests/LinqGenerationOperationsTest.cs index 3f84b8fc..9054ea49 100644 --- a/Lectures/Lecture_03/assets/sln/Tests/LinqGenerationOperationsTest.cs +++ b/Lectures/Lecture_03/assets/sln/Tests/LinqGenerationOperationsTest.cs @@ -12,9 +12,9 @@ public void DefaultIfEmptyTest() int[] emptyInt = { }; string[] words = { "one", "two", "three" }; - Assert.True(emptyStr.DefaultIfEmpty().First() == null); + Assert.True(emptyStr.DefaultIfEmpty().First() is null); Assert.True(emptyInt.DefaultIfEmpty().First() == 0); - Assert.False(words.DefaultIfEmpty() == null); + Assert.False(words.DefaultIfEmpty() is null); } [Fact] diff --git a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs index 8655512c..e52b7b9e 100644 --- a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs +++ b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs @@ -14,7 +14,7 @@ public IEnumerable Map(IQueryable entities) => entities?.Select(entity => Map(entity)).ToValueCollection(); public AddressDetailModel Map(AddressEntity entity) - => entity == null? null : new AddressDetailModel + => entity is null? null : new AddressDetailModel { Id = entity.Id, City = entity.City, diff --git a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs index 302bc85e..7088ae9a 100644 --- a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs +++ b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs @@ -22,7 +22,7 @@ public IEnumerable Map(IQueryable entities) }).ToValueCollection(); public CourseDetailModel Map(CourseEntity entity) - => entity == null + => entity is null ? null : new CourseDetailModel { diff --git a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs index 4170cb51..3d3fc2f7 100644 --- a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs +++ b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs @@ -23,7 +23,7 @@ public GradeListModel MapListModel(GradeEntity entity) => }; public GradeDetailModel Map(GradeEntity entity) - => entity == null + => entity is null ? null : new GradeDetailModel { diff --git a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs index ecc808e3..7fd9865f 100644 --- a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs +++ b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs @@ -22,7 +22,7 @@ public IEnumerable Map(IQueryable entities) }).ToValueCollection(); } - public StudentDetailModel Map(StudentEntity entity) => entity == null + public StudentDetailModel Map(StudentEntity entity) => entity is null ? null : new StudentDetailModel { diff --git a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs index b8a9b4d6..24af8f3a 100644 --- a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs +++ b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs @@ -20,7 +20,7 @@ public class EntityFactory : IEntityFactory .Entries() .SingleOrDefault(i => i.Entity.Id == id) ?.Entity; - if (entity == null) + if (entity is null) { entity = new TEntity { Id = id }; _changeTracker?.Context.Attach(entity); diff --git a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs index 5b625ab2..c4343c92 100644 --- a/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs +++ b/Lectures/Lecture_04/_site/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs @@ -67,7 +67,7 @@ private void SynchronizeCollections(TEntity entity) } var entityInDb = GetById(entity.Id); - if (entityInDb == null) return; + if (entityInDb is null) return; foreach (var collectionSelector in toBeSynchronized) { diff --git a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs index 8655512c..e52b7b9e 100644 --- a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs +++ b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/AddressMapper.cs @@ -14,7 +14,7 @@ public IEnumerable Map(IQueryable entities) => entities?.Select(entity => Map(entity)).ToValueCollection(); public AddressDetailModel Map(AddressEntity entity) - => entity == null? null : new AddressDetailModel + => entity is null? null : new AddressDetailModel { Id = entity.Id, City = entity.City, diff --git a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs index 302bc85e..7088ae9a 100644 --- a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs +++ b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/CourseMapper.cs @@ -22,7 +22,7 @@ public IEnumerable Map(IQueryable entities) }).ToValueCollection(); public CourseDetailModel Map(CourseEntity entity) - => entity == null + => entity is null ? null : new CourseDetailModel { diff --git a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs index 4170cb51..3d3fc2f7 100644 --- a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs +++ b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/GradeMapper.cs @@ -23,7 +23,7 @@ public GradeListModel MapListModel(GradeEntity entity) => }; public GradeDetailModel Map(GradeEntity entity) - => entity == null + => entity is null ? null : new GradeDetailModel { diff --git a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs index ecc808e3..7fd9865f 100644 --- a/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs +++ b/Lectures/Lecture_04/assets/sln/EntityFramework/School.BL/Mappers/StudentMapper.cs @@ -22,7 +22,7 @@ public IEnumerable Map(IQueryable entities) }).ToValueCollection(); } - public StudentDetailModel Map(StudentEntity entity) => entity == null + public StudentDetailModel Map(StudentEntity entity) => entity is null ? null : new StudentDetailModel { diff --git a/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs b/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs index b8a9b4d6..24af8f3a 100644 --- a/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs +++ b/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Factories/EntityFactory.cs @@ -20,7 +20,7 @@ public class EntityFactory : IEntityFactory .Entries() .SingleOrDefault(i => i.Entity.Id == id) ?.Entity; - if (entity == null) + if (entity is null) { entity = new TEntity { Id = id }; _changeTracker?.Context.Attach(entity); diff --git a/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs b/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs index 5b625ab2..c4343c92 100644 --- a/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs +++ b/Lectures/Lecture_04/assets/sln/EntityFramework/School.DAL/Repositories/RepositoryBase.cs @@ -67,7 +67,7 @@ private void SynchronizeCollections(TEntity entity) } var entityInDb = GetById(entity.Id); - if (entityInDb == null) return; + if (entityInDb is null) return; foreach (var collectionSelector in toBeSynchronized) { diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Converters/NullToVisibilityConverter.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Converters/NullToVisibilityConverter.cs index 460ad9e8..b8bc694e 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Converters/NullToVisibilityConverter.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Converters/NullToVisibilityConverter.cs @@ -13,7 +13,7 @@ public class NullToVisibilityConverter : IValueConverter { public object Convert(object? value, Type targetType, object parameter, CultureInfo culture) { - return value == null ? Visibility.Collapsed : Visibility.Visible; + return value is null ? Visibility.Collapsed : Visibility.Visible; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientAmountDetailViewModel.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientAmountDetailViewModel.cs index 7d30ce29..6e256988 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientAmountDetailViewModel.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientAmountDetailViewModel.cs @@ -87,7 +87,7 @@ private void Delete() private void Save() { - if (Model == null) + if (Model is null) { throw new InvalidOperationException("Null model cannot be saved"); } diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientDetailViewModel.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientDetailViewModel.cs index 61e85807..e6b1cb0e 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientDetailViewModel.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/IngredientDetailViewModel.cs @@ -42,7 +42,7 @@ public async Task LoadAsync(Guid id) public async Task SaveAsync() { - if (Model == null) + if (Model is null) { throw new InvalidOperationException("Null model cannot be saved"); } diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/MainViewModel.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/MainViewModel.cs index 64e0702a..d0f91c0f 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/MainViewModel.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/MainViewModel.cs @@ -114,7 +114,7 @@ private void SelectRecipe(Guid? id) else { var recipeDetailViewModel = RecipeDetailViewModels.SingleOrDefault(vm => vm.Model?.Id == id); - if (recipeDetailViewModel == null) + if (recipeDetailViewModel is null) { recipeDetailViewModel = _recipeDetailViewModelFactory.Create(); RecipeDetailViewModels.Add(recipeDetailViewModel); @@ -135,7 +135,7 @@ private void SelectIngredient(Guid? id) { var ingredientDetailViewModel = IngredientDetailViewModels.SingleOrDefault(vm => vm.Model?.Id == id); - if (ingredientDetailViewModel == null) + if (ingredientDetailViewModel is null) { ingredientDetailViewModel = _ingredientDetailViewModelFactory.Create(); IngredientDetailViewModels.Add(ingredientDetailViewModel); diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/RecipeDetailViewModel.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/RecipeDetailViewModel.cs index 3c458790..fbe0e9c6 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/RecipeDetailViewModel.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/ViewModels/RecipeDetailViewModel.cs @@ -144,7 +144,7 @@ public async Task DeleteAsync() public async Task SaveAsync() { - if (Model == null) + if (Model is null) { throw new InvalidOperationException("Null model cannot be saved"); } diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/ModelWrapper.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/ModelWrapper.cs index b7d9570c..f135b0ce 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/ModelWrapper.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/ModelWrapper.cs @@ -19,7 +19,7 @@ public abstract class ModelWrapper : ViewModelBase, IModel, IValidatableObjec { protected ModelWrapper(T? model) { - if (model == null) + if (model is null) { throw new ArgumentNullException(nameof(model)); } diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/RecipeWrapper.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/RecipeWrapper.cs index b3676c1c..43be483f 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/RecipeWrapper.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.App/Wrappers/RecipeWrapper.cs @@ -46,7 +46,7 @@ public string? ImageUrl private void InitializeCollectionProperties(RecipeDetailModel model) { - if (model.Ingredients == null) + if (model.Ingredients is null) { throw new ArgumentException("Ingredients cannot be null"); } diff --git a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.DAL/UnitOfWork/QueryableExtensions.cs b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.DAL/UnitOfWork/QueryableExtensions.cs index 45e832a2..7f744980 100644 --- a/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.DAL/UnitOfWork/QueryableExtensions.cs +++ b/Lectures/Lecture_06/CookBookCI/CookBook/CookBook.DAL/UnitOfWork/QueryableExtensions.cs @@ -20,7 +20,7 @@ public static async Task PreLoadChangeTracker(this IQueryable public static IQueryable IncludeFirstLevelNavigationProperties(this IQueryable query, Microsoft.EntityFrameworkCore.Metadata.IModel model) where TEntity : class { var navigationProperties = model.FindEntityType(typeof(TEntity))?.GetNavigations(); - if (navigationProperties == null) + if (navigationProperties is null) return query; foreach (var navigationProperty in navigationProperties) diff --git a/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs b/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs index d27c4a02..2528ddde 100644 --- a/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs +++ b/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs @@ -180,7 +180,7 @@ public ValueProviderAttribute([NotNull] string name) /// /// /// void Foo(string param) { - /// if (param == null) + /// if (param is null) /// throw new ArgumentNullException("par"); // Warning: Cannot resolve symbol /// } /// diff --git a/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs b/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs index b4b43289..36425d27 100644 --- a/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs +++ b/Lectures/Lecture_11/_site/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs @@ -42,7 +42,7 @@ internal Resources() { get { - if ((resourceMan == null)) + if ((resourceMan is null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AsynchronousProgramming.Samples.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; diff --git a/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs b/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs index d27c4a02..2528ddde 100644 --- a/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs +++ b/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Annotations.cs @@ -180,7 +180,7 @@ public ValueProviderAttribute([NotNull] string name) /// /// /// void Foo(string param) { - /// if (param == null) + /// if (param is null) /// throw new ArgumentNullException("par"); // Warning: Cannot resolve symbol /// } /// diff --git a/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs b/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs index b4b43289..36425d27 100644 --- a/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs +++ b/Lectures/Lecture_11/assets/sln/AsynchronousProgramming.Samples/Properties/Resources.Designer.cs @@ -42,7 +42,7 @@ internal Resources() { get { - if ((resourceMan == null)) + if ((resourceMan is null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AsynchronousProgramming.Samples.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp;