Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 1 / DataBindingHandlerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.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
- GridViewCellAutomationPeer.cs
- Dispatcher.cs
- ObjectTag.cs
- HtmlShimManager.cs
- SafeRightsManagementHandle.cs
- NameSpaceEvent.cs
- ECDsaCng.cs
- LogExtentCollection.cs
- ExtensionSimplifierMarkupObject.cs
- OdbcTransaction.cs
- SessionStateUtil.cs
- datacache.cs
- SecurityDescriptor.cs
- HostingEnvironment.cs
- PolyQuadraticBezierSegment.cs
- TdsParserSessionPool.cs
- XslAstAnalyzer.cs
- ApplicationActivator.cs
- WorkflowElementDialogWindow.xaml.cs
- PersonalizationAdministration.cs
- FontCollection.cs
- ObjectManager.cs
- SHA384Managed.cs
- QueryReaderSettings.cs
- MulticastDelegate.cs
- QuaternionRotation3D.cs
- HtmlUtf8RawTextWriter.cs
- QilInvokeEarlyBound.cs
- WpfPayload.cs
- Icon.cs
- OptimizedTemplateContentHelper.cs
- Ops.cs
- ByteRangeDownloader.cs
- DocumentSequenceHighlightLayer.cs
- WorkflowFileItem.cs
- SqlTriggerContext.cs
- URLString.cs
- RootCodeDomSerializer.cs
- CodePageEncoding.cs
- MulticastNotSupportedException.cs
- GeometryValueSerializer.cs
- DetailsViewRowCollection.cs
- ValidationRule.cs
- ListItemConverter.cs
- CheckBoxRenderer.cs
- DynamicObject.cs
- TextUtf8RawTextWriter.cs
- SQLByte.cs
- SqlOuterApplyReducer.cs
- CodeEntryPointMethod.cs
- TypeExtension.cs
- OptimizerPatterns.cs
- JapaneseCalendar.cs
- InvalidBodyAccessException.cs
- CodeIdentifier.cs
- WeakReference.cs
- GroupByQueryOperator.cs
- StateManagedCollection.cs
- PersonalizableTypeEntry.cs
- XmlQualifiedNameTest.cs
- InvalidDocumentContentsException.cs
- SystemIcons.cs
- RegistrationServices.cs
- PropertyValueUIItem.cs
- ReservationCollection.cs
- CustomWebEventKey.cs
- CompareInfo.cs
- ExpressionWriter.cs
- Internal.cs
- Point4DConverter.cs
- KeyValuePairs.cs
- SolidColorBrush.cs
- SafeThemeHandle.cs
- ColumnMapTranslator.cs
- HtmlInputImage.cs
- SchemaElementLookUpTableEnumerator.cs
- RequiredFieldValidator.cs
- SafeLibraryHandle.cs
- PeerNameRegistration.cs
- SystemResourceKey.cs
- WorkerRequest.cs
- DrawingVisualDrawingContext.cs
- RecipientInfo.cs
- _TimerThread.cs
- MergeFailedEvent.cs
- Bitmap.cs
- ClientBuildManager.cs
- RightsManagementProvider.cs
- HtmlTitle.cs
- WindowsGraphicsCacheManager.cs
- DocumentGridContextMenu.cs
- CollectionEditor.cs
- Metafile.cs
- FormViewUpdatedEventArgs.cs
- AutomationPattern.cs
- AutoResizedEvent.cs
- ProgressBar.cs
- RIPEMD160Managed.cs
- DoubleStorage.cs
- NetCodeGroup.cs