Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# obsolete class

//The last parameter (true|false) determine if the use of class, property,
//function, etc is considered as error or not

[ObsoleteAttribute("Here you say why this class is obsolete", false)]
public class MyClass
{
   [ObsoleteAttribute("Here you say why this property is obsolete", false)]
   public string MyProperty
   {
       get {}
       set {}
   }
}
Comment

c# obsolete class


[Obsolete("Not used any more", true)]
public class MyDeprecatedClass
{
    //...
}

Comment

PREVIOUS NEXT
Code Example
Csharp :: how to convert timestamp to datetime c# 
Csharp :: how to get mouse position c# 
Csharp :: enum in c# 
Csharp :: c# get random index from list 
Csharp :: unity unit tests 
Csharp :: How to search values in the registry 
Csharp :: how to sort a dictionary by value in c# 
Csharp :: Code to disable Debug.log 
Csharp :: How can I display image from database in asp.net mvc. I created image table and image path as varchar 
Csharp :: c# split include separators 
Csharp :: c# convert date to oracle format 
Csharp :: Get all images from folder asp.net 
Csharp :: checkbox in c# 
Csharp :: c# to pascal case 
Csharp :: double parse csharp removes decimal 
Csharp :: c# caractère cacher mot de passe 
Csharp :: c# centos Regex Username 
Csharp :: how to make 3d field of view in unity 
Csharp :: c# json 
Csharp :: c# get every point in a line in matrix 
Csharp :: change color unity over time 
Csharp :: Formcollection asp.net form 
Csharp :: web client ignore ssl error 
Csharp :: unity how to make gamemanager instance 
Csharp :: unity hide mouse first person 
Csharp :: unity vector3 initialization 
Csharp :: .net core copy file in folder to root 
Csharp :: check if element in hashset c# 
Csharp :: C# Async Function simple 
Csharp :: c# string length 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =