Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSecureResolver.cs
- CounterSampleCalculator.cs
- ProxyWebPartConnectionCollection.cs
- Item.cs
- SubpageParaClient.cs
- SpStreamWrapper.cs
- TextDecorationCollection.cs
- AutomationIdentifier.cs
- IncrementalReadDecoders.cs
- DataControlPagerLinkButton.cs
- TaskFormBase.cs
- WindowsGraphics2.cs
- WebBrowserHelper.cs
- ProfilePropertyMetadata.cs
- OleDbDataReader.cs
- DataGridCell.cs
- DBCommand.cs
- Figure.cs
- CodeTypeDelegate.cs
- CombinedGeometry.cs
- EdmSchemaError.cs
- OLEDB_Util.cs
- StyleSelector.cs
- BamlLocalizableResourceKey.cs
- NativeCompoundFileAPIs.cs
- SqlDependency.cs
- ControlBuilder.cs
- StandardOleMarshalObject.cs
- BinHexEncoding.cs
- IsolatedStorageSecurityState.cs
- LogSwitch.cs
- OracleBinary.cs
- PropVariant.cs
- WizardStepBase.cs
- HwndHost.cs
- EdmTypeAttribute.cs
- StandardCommands.cs
- EventRecordWrittenEventArgs.cs
- PolyBezierSegment.cs
- RadioButton.cs
- ReadContentAsBinaryHelper.cs
- PtsHelper.cs
- DurableEnlistmentState.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- TTSEvent.cs
- KeyGestureValueSerializer.cs
- SamlDelegatingWriter.cs
- Cursor.cs
- GlyphsSerializer.cs
- TraceContext.cs
- DockPattern.cs
- MenuCommand.cs
- Compress.cs
- SqlHelper.cs
- Bits.cs
- TaskHelper.cs
- CodeGenerationManager.cs
- PartitionResolver.cs
- FontDriver.cs
- SqlClientFactory.cs
- followingsibling.cs
- HwndMouseInputProvider.cs
- FileUtil.cs
- ImmComposition.cs
- Decoder.cs
- CodeCommentStatementCollection.cs
- XmlSubtreeReader.cs
- PartialTrustVisibleAssembliesSection.cs
- WebResponse.cs
- ReadOnlyTernaryTree.cs
- BinaryObjectInfo.cs
- IgnoreFileBuildProvider.cs
- TryExpression.cs
- CallbackValidator.cs
- SimpleApplicationHost.cs
- XmlWrappingWriter.cs
- ProvidersHelper.cs
- OleDbParameter.cs
- SecurityPolicySection.cs
- BinaryConverter.cs
- DataTemplateSelector.cs
- DesignerAdapterUtil.cs
- ResponseBodyWriter.cs
- CachedBitmap.cs
- MessageBox.cs
- ThemeDirectoryCompiler.cs
- TimeZoneNotFoundException.cs
- VariableDesigner.xaml.cs
- ElementProxy.cs
- WindowsStatusBar.cs
- HtmlInputText.cs
- AdRotator.cs
- ErrorFormatter.cs
- SwitchElementsCollection.cs
- FrameAutomationPeer.cs
- SqlDependency.cs
- GradientBrush.cs
- Simplifier.cs
- NetStream.cs
- OrCondition.cs