-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathINamingConventions.cs
More file actions
25 lines (23 loc) · 723 Bytes
/
INamingConventions.cs
File metadata and controls
25 lines (23 loc) · 723 Bytes
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
using System;
using System.Reflection;
namespace JSONAPI.Core
{
/// <summary>
/// Allows configuring how to calculate JSON API keys based on CLR types and properties
/// </summary>
public interface INamingConventions
{
/// <summary>
/// Calculates the field name for a given property
/// </summary>
/// <param name="property"></param>
/// <returns></returns>
string GetFieldNameForProperty(PropertyInfo property);
/// <summary>
/// Calculates the resource type name for a CLR type
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
string GetResourceTypeNameForType(Type type);
}
}