Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HWStack.cs
- _BasicClient.cs
- TransactedBatchingBehavior.cs
- Visual3D.cs
- InterleavedZipPartStream.cs
- ContextMenuStrip.cs
- HtmlWindowCollection.cs
- ResourceManagerWrapper.cs
- SecurityPolicySection.cs
- ReadWriteSpinLock.cs
- XmlAttribute.cs
- SessionStateModule.cs
- SQLByte.cs
- WebServiceHostFactory.cs
- ExpressionEvaluator.cs
- ValidationContext.cs
- SpeakProgressEventArgs.cs
- KeyValueInternalCollection.cs
- AutoGeneratedField.cs
- ComponentDispatcher.cs
- RuntimeIdentifierPropertyAttribute.cs
- SymLanguageVendor.cs
- BindingContext.cs
- DataGridColumn.cs
- DetailsViewCommandEventArgs.cs
- SQLBinaryStorage.cs
- DataSetFieldSchema.cs
- ControlValuePropertyAttribute.cs
- ImageSource.cs
- CounterSampleCalculator.cs
- Converter.cs
- SystemIPGlobalStatistics.cs
- ImpersonateTokenRef.cs
- TextRangeAdaptor.cs
- ShaderEffect.cs
- Privilege.cs
- SocketInformation.cs
- WebBrowserHelper.cs
- MessageQueueConverter.cs
- UniqueConstraint.cs
- Matrix.cs
- ActiveDocumentEvent.cs
- LedgerEntryCollection.cs
- XmlRootAttribute.cs
- SaveFileDialog.cs
- Maps.cs
- DesignerActionKeyboardBehavior.cs
- TextRange.cs
- ViewStateModeByIdAttribute.cs
- SelectedDatesCollection.cs
- ParameterInfo.cs
- ConfigurationManagerHelper.cs
- XmlIlVisitor.cs
- ImageMapEventArgs.cs
- OrderedEnumerableRowCollection.cs
- HttpCacheVaryByContentEncodings.cs
- TreeNodeStyle.cs
- TailPinnedEventArgs.cs
- SByteConverter.cs
- NopReturnReader.cs
- DataSpaceManager.cs
- LogicalExpr.cs
- PerformanceCounterPermissionEntry.cs
- NGCSerializer.cs
- UxThemeWrapper.cs
- OptimizedTemplateContent.cs
- CardSpacePolicyElement.cs
- IProvider.cs
- AssociationEndMember.cs
- OneOfConst.cs
- RegexTypeEditor.cs
- BinarySecretKeyIdentifierClause.cs
- ObjectDataSourceEventArgs.cs
- BitmapMetadataBlob.cs
- ReturnValue.cs
- CodeAssignStatement.cs
- WorkflowTransactionOptions.cs
- DNS.cs
- ToolStripPanel.cs
- LoginCancelEventArgs.cs
- WebConfigurationHostFileChange.cs
- DBAsyncResult.cs
- DbConnectionStringBuilder.cs
- Transform3D.cs
- ExcCanonicalXml.cs
- DatagridviewDisplayedBandsData.cs
- XhtmlBasicPhoneCallAdapter.cs
- InvokeHandlers.cs
- TreeViewTemplateSelector.cs
- TableItemProviderWrapper.cs
- AsyncCompletedEventArgs.cs
- VerificationException.cs
- GeneralTransform3DTo2DTo3D.cs
- WebControl.cs
- TextUtf8RawTextWriter.cs
- CriticalHandle.cs
- DataBinder.cs
- Perspective.cs
- TabItemAutomationPeer.cs
- Operator.cs