وبلاگ کلاسیک - طراحی سایت|نرم افزار اندروید|IOS|مرورگران

وبلاگ کلاسیک

difference between throw exception in rethrow

In some cases needs to throw an exception to notify the caller something bad was being happened but to logging the exact line code in which the exception happened reThrowing should be used. Let’s dive into code and look at it practically. using System; namespace MyApp { class Program { static void Main(string[] args) { var radio = new Radio(); radio.SetVolume(120); } class Radio { public int

What is the difference between a.Equals(b) and a == b?

For value types: “==” and Equals() works same way : Compare two objects by VALUE Example:     int i = 5; int k= 5;     Here “==” and Equals() is as: i == k >> True i.Equals(k) >> True  For reference types : both works differently : “==” compares reference – returns true if and only if both references point to the SAME object while “Equals” method compares object by VALUE and it

Actions require an explicit HttpMethod binding for Swagger

Actions require an explicit HttpMethod binding for Swagger

As the error is clear and tells us that some of HTTP methods should be explicitly bound to action like “Get, Post, Delete or Put” so these steps should be check : Make sure all of the controller’s methods are surrounded by [HttpGet] and etcetera  If your controller class inherited from a custom base class, check if all public methods of base class also surrounded by HTTP

چگونه می توان یک مقاله را واقعاً آموزنده، اما در عین حال روان و خوانا نوشت؟؟؟

چگونه می توان یک مقاله را واقعاً آموزنده، اما در عین حال روان و خوانا نوشت؟؟؟

چگونه می توان یک مقاله را واقعاً آموزنده، اما در عین حال روان و خوانا نوشت؟؟؟ برای پاسخ به این سوال در این مقاله برای شما تکنیک های مهمی که موجب افزایش خوانایی و درک مقاله می شوند را به طورکامل توضیح می دهیم. با ما همراه باشید تا تنها با 5 تکنیک ساده بتوانید خوانندگان پست های خود را به طور چشمگیری افزایش دهید.   1.

دیجیتال مارکتینگ چیست؟

دیجیتال مارکتینگ چیست؟

  دیجیتال مارکتینگ چیست؟ دیجیتال مارکتینگ شامل تمام بازاریابی‌هاییست که از ابزار الکترونیک یا اینترنت استفاده می‌کنند. کسب‌وکارها از طریق کانال‌های دیجیتالی مانند موتورهای جستجوگر، رسانه‌های اجتماعی، ایمیل و وب‌سایت‌ با مشتریان مشخص و موثر خود در ارتباط هستند. ممکن است بازاریاب‌های ربایشی تصور کنند Inbound Marketing (بازاریابی ربایشی/ بازاریابی درونگرا/ بازازیابی جاذبه­­ای) و دیجیتال مارکتینگ کمابیش یک مفهوم و یک هدف دارند. با این حال تفاوت‌های اندکی میان این دو حوزه وجود دارد. طبق تحقیقات انجام شده از تاجران آمریکایی، انگلیسی، آسیایی، استرالیایی و نیوزلند، بازاریابی ربایشی

Avoid UseEffect in react to execute on every updates

Avoid UseEffect in react to execute on every updates

React virtual DOM is one of the most important features of reactjs which is has high performance impact on react applications , but this feature is kind of knife that could be awful if misused . A misused case of that ,wouldn’t be care of when components should be updated (class or functional) or made react to unlimited rerender in a loop . useEffect (()=>{},[]) hook came