I'm working on a ".dat" file creation project, where the requirement is to generate a file with the necessary padding "zeros" or "spaces" for all the ...
I'm working on a ".dat" file creation project, where the requirement is to generate a file with the necessary padding "zeros" or "spaces" for all the ...
What I was asked to develop, I don't think can be developed. Maybe someone can prove me wrong. We have a custom Attribute that is used on hundreds of ...
I'm trying to get methods from which have a specific Callback attribute inside the constructor of an abstract class. The challenge here is that I also ...
I have some long lists of buttons. For example, i have one single list of car models that all have the same custom data attribute of "modellist", whil ...
I am working on an application that stores data in the ConfigurationManager.AppSettings file, and I am wanting to implement it in a different way than ...
If I have a DataTable like this: DataTable dt = new DataTable(); dt.Columns.Add("AccountNumber", typeof(string)); dt.Columns.Add("InstrumentType", t ...
I've created a custom attribute that will be used throughout multiple actions. I need to take parameter from the action where attribute is used and pa ...
Let's say you have several methods of the following form (greatly simplified here for illustration purposes): Snippet 1 You would like to add exce ...
The question Is there a way to get the position in code of where an attribute has been used, or the location where a member variable has been declare ...
Given this basic GET method: The MaxLength decorator is not working when I actually send a value bigger than int.MaxValue: I get a System.Overfl ...
I'm creating a custom class in c# and I want to add a method in a property So, a custom method in a property for example it's like the ToString metho ...
I am new the API in general, let me give you the background of the API and what I want it to do. I have a API have that are external facing and so ev ...
I have a .csv file that I am using to modify custom attributes on users in Active Directory, but PowerShell does not like the script: I get the fol ...
I'm not familiar with ASP.NET Core actions' custom filter attribute. I need to redirect to another action in case some data does not exist using a cus ...
A colleague of mine is using ObsoleteAttribute on not-yet-implemented methods so we get the warning at compile time. Since a method to be implemented ...
I have created custom attribute that is used on Translation class, which is applied as following: The attribute code is: My default scenario is ...
As you know, custom attributes can be "attached to" a class or to a method (I am not regarding restrictions here - I know you can restrict it to class ...
I'm trying to create a controller on my gateway that does pretty much nothing except proxy a request to another API. (It does some other very basic pr ...
Very simple and straight forward. I pre-populated a HTML datalist with values, on the form when I want select the custom value (data-value) and insert ...