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
- ModelItemCollection.cs
- WrappedIUnknown.cs
- XmlToDatasetMap.cs
- AssemblySettingAttributes.cs
- PieceDirectory.cs
- PenContexts.cs
- HotSpot.cs
- PageBuildProvider.cs
- ObjectParameterCollection.cs
- WebEventTraceProvider.cs
- BinaryObjectInfo.cs
- Command.cs
- KeyEventArgs.cs
- TypeSemantics.cs
- CodeTypeMember.cs
- ReferenceEqualityComparer.cs
- ReverseInheritProperty.cs
- MimeTypeAttribute.cs
- LineProperties.cs
- ArrayList.cs
- UIElementParaClient.cs
- DesignerOptions.cs
- TempFiles.cs
- Dump.cs
- GridViewDeletedEventArgs.cs
- EditorZoneBase.cs
- CompilerErrorCollection.cs
- StrongNamePublicKeyBlob.cs
- ClientSideProviderDescription.cs
- TextEditorDragDrop.cs
- RijndaelManaged.cs
- TimelineGroup.cs
- CounterCreationData.cs
- XmlSignificantWhitespace.cs
- DiagnosticTrace.cs
- DocumentOrderComparer.cs
- GifBitmapEncoder.cs
- SecureUICommand.cs
- DetailsViewPageEventArgs.cs
- HttpCacheVaryByContentEncodings.cs
- HttpPostedFile.cs
- DataSourceCache.cs
- OracleLob.cs
- TextRunCacheImp.cs
- TrackingProfileDeserializationException.cs
- ExpressionConverter.cs
- DateTimeOffsetStorage.cs
- CmsUtils.cs
- DrawingBrush.cs
- ReferenceSchema.cs
- XAMLParseException.cs
- UpdateCommand.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Run.cs
- ConvertersCollection.cs
- PartitionResolver.cs
- WindowsAuthenticationModule.cs
- OwnerDrawPropertyBag.cs
- RowsCopiedEventArgs.cs
- ParallelLoopState.cs
- Point.cs
- Input.cs
- TextElementAutomationPeer.cs
- DriveNotFoundException.cs
- FileUpload.cs
- TextTreeRootNode.cs
- PopOutPanel.cs
- SynchronizationContext.cs
- CompModHelpers.cs
- ConfigXmlElement.cs
- StrokeCollection2.cs
- SqlStream.cs
- DataServiceEntityAttribute.cs
- ImportCatalogPart.cs
- ValidatingReaderNodeData.cs
- TreeNodeMouseHoverEvent.cs
- BuilderPropertyEntry.cs
- SingleKeyFrameCollection.cs
- HostingMessageProperty.cs
- VariableBinder.cs
- ValidationErrorEventArgs.cs
- SqlBinder.cs
- KeyboardDevice.cs
- RuntimeConfigurationRecord.cs
- CatalogPartCollection.cs
- CodeSubDirectoriesCollection.cs
- Metafile.cs
- StyleSheetComponentEditor.cs
- NumericExpr.cs
- CacheMemory.cs
- safelink.cs
- DataBinding.cs
- IChannel.cs
- Char.cs
- StreamReader.cs
- DataGridViewColumnConverter.cs
- ParameterRefs.cs
- FormatSettings.cs
- ExplicitDiscriminatorMap.cs
- TextTreeDeleteContentUndoUnit.cs