Hello,
I would like to have more information, if possible, concerning the ATTRIBUTE functionality in Fortran .Net. Indeed, I created a CSharp attribute class with 2 fields (unit and parameter name fields). Here is the description of my C# class: [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true)] public class UnitAttribute:Attribute { private string sUnitName; private string sParamName;
///<summary>
/// Constructor of the UnitAttribute Class
/// Used to initialise the unit name
///</summary>
public UnitAttribute(string name)
{
sUnitName = name;
}
///<summary>
/// Property to get the unit name
///</summary>
public string Unit
{
get
{
return sUnitName;
}
}
///<summary>
/// Property to get and set the name of the fortran parameter
///</summary>
public string ParameterName
{
get
{
return sParamName;
}
set
{
sParamName = value;
}
}
Now I would like to use it in the .Net fortran code... So I use the ATTRIBUTE routine as described in the help documentation: ATTRIBUTE(CLASS='MyNameSpace.UnitAttribute','m',Target = 'Routine'). This works fine, but I do not know how to assign the ParameterName property with the ATTRIBUTE routine. Thanks in advance for your help.
Patrick