This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CSharp | |
public alias CSharpFile=list[Ast]; | |
data AstNode = comment(CommentType commentType, str content, bool startsLine) | |
| namespaceDeclaration(str name, list[AstNode] identifiers, list[AstNode] members, str name) | |
| constraint(list[AstType] baseTypes, str typeParameter) | |
| queryOrdering(QueryOrderingDirection direction, Expression expression) | |
| attribute(list[Expression] arguments) | |
| cSharpModifierToken(list[Modifiers] allModifiers, list[Modifiers] modifier) | |
| variablePlaceholder(str name, str name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data AstNode = | |
usingAliasDeclaration(AstType import, str alias, NodeType nodeType) | |
| typeParameterDeclaration(str identifier, VarianceModifier variance, NodeType nodeType) | |
| arraySpecifier(int dimensions, NodeType nodeType) | |
| caseLabel(Expression expression, NodeType nodeType) | |
| comment(str content, NodeType nodeType, bool startsLine, CommentType commentType) | |
| namespaceDeclaration(str fullName, str name, list[AstNode] members, list[Identifier] identifiers, NodeType nodeType) | |
| cSharpModifierToken(ICollection allModifiers, Modifiers modifier, NodeType nodeType) | |
| parameterDeclaration(str name, Expression defaultExpression, ParameterModifier parameterModifier, AstType type, list[AttributeSection] attributes, NodeType nodeType) | |
| constructorInitializer(ConstructorInitializerType constructorInitializerType, list[AstNode] arguments, NodeType nodeType) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BrowserCacheAttribute : ActionFilterAttribute | |
{ | |
/// <summary> | |
/// Gets or sets the cache duration in seconds. | |
/// The default is 10 seconds. | |
/// </summary> | |
/// <value>The cache duration in seconds.</value> | |
public int Duration | |
{ | |
get; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static OrderState GetState(this Order self) | |
{ | |
return (OrderState)self.State; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static OrderState AsOrderState(this int i) | |
{ | |
return (OrderState)i; | |
} |
NewerOlder