-
Notifications
You must be signed in to change notification settings - Fork 37
/
AttributedClass.cs
36 lines (32 loc) · 1.06 KB
/
AttributedClass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//____________________________________________________________________________________________________________________________________
//
// Copyright (C) 2023, Mariusz Postol LODZ POLAND.
//
// To be in touch join the community by pressing the `Watch` button and get started commenting using the discussion panel at
//
// https://github.com/mpostol/TP/discussions/182
//
// by introducing yourself and telling us what you do with this community.
//_____________________________________________________________________________________________________________________________________
using System;
namespace TP.DataStreams.Reflection
{
[CustomAttribute("Description of the class")]
public class AttributedClass
{
[Obsolete]
public static object GetObject()
{
return new AttributedClass();
}
}
[AttributeUsage(AttributeTargets.Class)]
public class CustomAttribute : Attribute
{
public CustomAttribute(string attributeDescription)
{
Description = attributeDescription;
}
public string Description { get; private set; }
}
}