e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="ExpressionPrefixAttribute.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.Compilation {
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Security.Permissions;
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple=false)]
|
|
public sealed class ExpressionPrefixAttribute : Attribute {
|
|
|
|
private string _expressionPrefix;
|
|
|
|
|
|
public ExpressionPrefixAttribute(string expressionPrefix) {
|
|
if (String.IsNullOrEmpty(expressionPrefix)) {
|
|
throw new ArgumentNullException("expressionPrefix");
|
|
}
|
|
|
|
_expressionPrefix = expressionPrefix;
|
|
}
|
|
|
|
|
|
public string ExpressionPrefix {
|
|
get {
|
|
return _expressionPrefix;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|