Reputation: 5524
May be it's a wrong question, but I need to create a Model/class and access same in azure function. I could not able to find how can I create a class.
Upvotes: 5
Views: 5872
Reputation: 12538
Classes may be created inline as it would typically define a class in a regular C# project. Here's an example of a function that defines a class.
You can also define classes in separate files and reference those files using the #load
directive as documented here.
Another option is to reference an assembly where your classes are defined, as documented here.
And, a different approach, and yet another option, is to use the newly announced Visual Studio 2017 Tools for Azure Functions
Upvotes: 13