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
- OracleException.cs
- SQLGuid.cs
- TickBar.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- WpfPayload.cs
- Array.cs
- AutomationPatternInfo.cs
- TrustLevelCollection.cs
- HMACSHA256.cs
- AppliedDeviceFiltersEditor.cs
- CollectionDataContractAttribute.cs
- XamlReader.cs
- Button.cs
- SymmetricCryptoHandle.cs
- EventSourceCreationData.cs
- TableItemStyle.cs
- KeyTime.cs
- OperationBehaviorAttribute.cs
- StringSorter.cs
- CFStream.cs
- Inline.cs
- ApplicationDirectory.cs
- AppSettingsExpressionBuilder.cs
- ISO2022Encoding.cs
- Int32CollectionConverter.cs
- UserControlDocumentDesigner.cs
- TextEndOfParagraph.cs
- PcmConverter.cs
- DataTransferEventArgs.cs
- DependencySource.cs
- XamlParser.cs
- Native.cs
- XmlMapping.cs
- GenericIdentity.cs
- DateTimeUtil.cs
- _DisconnectOverlappedAsyncResult.cs
- SingleSelectRootGridEntry.cs
- DelegateSerializationHolder.cs
- XmlSchemaInferenceException.cs
- EUCJPEncoding.cs
- Util.cs
- SplitContainer.cs
- HttpMethodConstraint.cs
- AgileSafeNativeMemoryHandle.cs
- ProviderBase.cs
- WebPartHeaderCloseVerb.cs
- DashStyle.cs
- ActivityExecutor.cs
- SqlParameterCollection.cs
- PhysicalOps.cs
- BevelBitmapEffect.cs
- TypeDescriptionProviderAttribute.cs
- WmfPlaceableFileHeader.cs
- CheckBoxDesigner.cs
- OleDbDataAdapter.cs
- XmlHierarchicalDataSourceView.cs
- uribuilder.cs
- BitmapSource.cs
- BindingMAnagerBase.cs
- SqlComparer.cs
- PolicyException.cs
- SafeProcessHandle.cs
- NativeMethods.cs
- DataGridTableCollection.cs
- IfAction.cs
- Environment.cs
- SHA1Managed.cs
- QuaternionConverter.cs
- TickBar.cs
- XmlConvert.cs
- JpegBitmapDecoder.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SQLUtility.cs
- FtpCachePolicyElement.cs
- TablePatternIdentifiers.cs
- InvalidProgramException.cs
- CommonProperties.cs
- SystemWebExtensionsSectionGroup.cs
- IsolatedStorageFileStream.cs
- BitmapSourceSafeMILHandle.cs
- XmlAnyElementAttribute.cs
- HostingEnvironmentException.cs
- PropertyDescriptors.cs
- TemplateLookupAction.cs
- RectangleHotSpot.cs
- WinFormsSecurity.cs
- ManagementOperationWatcher.cs
- RenamedEventArgs.cs
- DoubleCollectionConverter.cs
- FacetValueContainer.cs
- AgileSafeNativeMemoryHandle.cs
- PackageRelationship.cs
- X509CertificateCollection.cs
- _ProxyChain.cs
- DataGridColumn.cs
- DataRecordObjectView.cs
- BaseDataList.cs
- Keywords.cs
- WorkflowDefinitionDispenser.cs
- EventQueueState.cs