Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Compilation / ExpressionEditorAttribute.cs / 1 / ExpressionEditorAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System.Security.Permissions; [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionEditorAttribute : Attribute { private string _editorTypeName; public ExpressionEditorAttribute(Type type) : this((type != null) ? type.AssemblyQualifiedName : null) { } public ExpressionEditorAttribute(string typeName) { if (String.IsNullOrEmpty(typeName)) { throw new ArgumentNullException("typeName"); } _editorTypeName = typeName; } public string EditorTypeName { get { return _editorTypeName; } } public override bool Equals(object obj) { if (obj == this) { return true; } ExpressionEditorAttribute other = obj as ExpressionEditorAttribute; return ((other != null) && (other.EditorTypeName == EditorTypeName)); } public override int GetHashCode() { return EditorTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System.Security.Permissions; [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ExpressionEditorAttribute : Attribute { private string _editorTypeName; public ExpressionEditorAttribute(Type type) : this((type != null) ? type.AssemblyQualifiedName : null) { } public ExpressionEditorAttribute(string typeName) { if (String.IsNullOrEmpty(typeName)) { throw new ArgumentNullException("typeName"); } _editorTypeName = typeName; } public string EditorTypeName { get { return _editorTypeName; } } public override bool Equals(object obj) { if (obj == this) { return true; } ExpressionEditorAttribute other = obj as ExpressionEditorAttribute; return ((other != null) && (other.EditorTypeName == EditorTypeName)); } public override int GetHashCode() { return EditorTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlBinaryReader.cs
- HitTestParameters3D.cs
- ClientProxyGenerator.cs
- GenericTypeParameterBuilder.cs
- DynamicPhysicalDiscoSearcher.cs
- Latin1Encoding.cs
- QilFunction.cs
- SAPIEngineTypes.cs
- InputMethodStateTypeInfo.cs
- IPPacketInformation.cs
- PerCallInstanceContextProvider.cs
- SystemResourceKey.cs
- SurrogateChar.cs
- UpdateCompiler.cs
- StrongNameIdentityPermission.cs
- LicenseException.cs
- EventItfInfo.cs
- SqlDependencyUtils.cs
- GenericTypeParameterConverter.cs
- SqlSupersetValidator.cs
- PageStatePersister.cs
- GeneralTransformGroup.cs
- VirtualizingPanel.cs
- FontFamily.cs
- DbReferenceCollection.cs
- Rect3D.cs
- FunctionCommandText.cs
- recordstatefactory.cs
- BmpBitmapDecoder.cs
- ScalarOps.cs
- CommandTreeTypeHelper.cs
- NetworkInformationException.cs
- MemberRelationshipService.cs
- DataRowIndexBuffer.cs
- XmlHierarchicalEnumerable.cs
- EventMappingSettingsCollection.cs
- Vector.cs
- ConnectionStringSettingsCollection.cs
- SessionStateItemCollection.cs
- ScrollChrome.cs
- CoordinationService.cs
- DeclaredTypeElement.cs
- XmlObjectSerializerWriteContextComplex.cs
- ContractCodeDomInfo.cs
- BitmapPalette.cs
- SqlAliaser.cs
- TraceSwitch.cs
- WindowShowOrOpenTracker.cs
- Point3DCollectionValueSerializer.cs
- UrlMappingsModule.cs
- PassportAuthenticationEventArgs.cs
- ByValueEqualityComparer.cs
- TextPenaltyModule.cs
- SystemException.cs
- RuntimeVariablesExpression.cs
- ControlCachePolicy.cs
- HtmlGenericControl.cs
- BaseDataListPage.cs
- TypeInitializationException.cs
- EnumerableRowCollectionExtensions.cs
- NextPreviousPagerField.cs
- StreamGeometryContext.cs
- HttpStaticObjectsCollectionBase.cs
- ToolBar.cs
- Registry.cs
- NamespaceList.cs
- LayoutInformation.cs
- MruCache.cs
- FocusManager.cs
- CharKeyFrameCollection.cs
- TextTrailingWordEllipsis.cs
- ConfigUtil.cs
- PackWebRequestFactory.cs
- GeneralTransform3DTo2D.cs
- SortedSet.cs
- CheckBoxBaseAdapter.cs
- XmlDocumentFragment.cs
- RayHitTestParameters.cs
- BindingGroup.cs
- webclient.cs
- ConfigurationLockCollection.cs
- CodeDomConfigurationHandler.cs
- HttpSessionStateWrapper.cs
- InputElement.cs
- DefaultWorkflowTransactionService.cs
- XsdCachingReader.cs
- MetafileHeader.cs
- NamespaceQuery.cs
- basecomparevalidator.cs
- ImplicitInputBrush.cs
- WsiProfilesElementCollection.cs
- HyperLinkColumn.cs
- SpecialFolderEnumConverter.cs
- XmlSchemaValidationException.cs
- Visual3D.cs
- GradientSpreadMethodValidation.cs
- IQueryable.cs
- RuntimeWrappedException.cs
- TextShapeableCharacters.cs
- SrgsToken.cs