Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / MetadataConversionError.cs / 1 / MetadataConversionError.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Description
{
using System.Collections.ObjectModel;
using System.ServiceModel.Channels;
public class MetadataConversionError
{
string message;
bool isWarning;
public MetadataConversionError(string message): this(message, false) { }
public MetadataConversionError(string message, bool isWarning)
{
if(message == null)
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("message");
this.message = message;
this.isWarning = isWarning;
}
public string Message { get { return message; } }
public bool IsWarning { get { return isWarning; } }
public override bool Equals(object obj)
{
MetadataConversionError otherError = obj as MetadataConversionError;
if (otherError == null)
return false;
return otherError.IsWarning == this.IsWarning && otherError.Message == this.Message;
}
public override int GetHashCode()
{
return message.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
- MouseEvent.cs
- XPathScanner.cs
- CheckBoxPopupAdapter.cs
- DataServiceHostFactory.cs
- OutputCacheProfileCollection.cs
- SmtpReplyReader.cs
- StorageMappingItemLoader.cs
- ClosableStream.cs
- GenericPrincipal.cs
- ZipPackagePart.cs
- MarshalByValueComponent.cs
- EntityClassGenerator.cs
- TableRow.cs
- DrawTreeNodeEventArgs.cs
- ResourceDisplayNameAttribute.cs
- KnownAssemblyEntry.cs
- ListItemCollection.cs
- ReturnType.cs
- DispatcherFrame.cs
- ReflectionTypeLoadException.cs
- PathSegment.cs
- ItemCheckedEvent.cs
- EditorZone.cs
- ControlAdapter.cs
- WindowsFormsHostAutomationPeer.cs
- unsafenativemethodstextservices.cs
- XhtmlBasicPhoneCallAdapter.cs
- PackagePart.cs
- CurrentChangedEventManager.cs
- ToolBarButtonClickEvent.cs
- MethodImplAttribute.cs
- typedescriptorpermission.cs
- ActivityExecutionWorkItem.cs
- StaticFileHandler.cs
- StringUtil.cs
- TypeCollectionPropertyEditor.cs
- PassportAuthenticationModule.cs
- SafeViewOfFileHandle.cs
- Calendar.cs
- Inflater.cs
- DiscriminatorMap.cs
- CodeObjectCreateExpression.cs
- WindowsListViewGroup.cs
- SrgsElementList.cs
- CalendarKeyboardHelper.cs
- XmlQueryContext.cs
- SafePipeHandle.cs
- IImplicitResourceProvider.cs
- XmlSchemaGroupRef.cs
- ActivityMarkupSerializer.cs
- DataBinding.cs
- DragEvent.cs
- DescendantBaseQuery.cs
- _NetworkingPerfCounters.cs
- CroppedBitmap.cs
- PropertyGridCommands.cs
- PseudoWebRequest.cs
- ChannelSinkStacks.cs
- HtmlShimManager.cs
- SqlCaseSimplifier.cs
- XslException.cs
- HttpModuleAction.cs
- ToolboxDataAttribute.cs
- HotSpotCollection.cs
- CodeTypeDeclaration.cs
- SqlRowUpdatedEvent.cs
- ControlEvent.cs
- TdsParser.cs
- ExpandSegment.cs
- _SslState.cs
- CngUIPolicy.cs
- IIS7UserPrincipal.cs
- FileSecurity.cs
- AnnotationService.cs
- COM2ExtendedTypeConverter.cs
- HttpListener.cs
- ApplicationProxyInternal.cs
- COAUTHINFO.cs
- SliderAutomationPeer.cs
- ViewBox.cs
- RSAPKCS1SignatureFormatter.cs
- Base64Stream.cs
- HttpCacheVaryByContentEncodings.cs
- QuotedPrintableStream.cs
- RandomNumberGenerator.cs
- OracleCommandBuilder.cs
- DataGridViewTopLeftHeaderCell.cs
- ObjectTypeMapping.cs
- WebServiceEnumData.cs
- RequestCachingSection.cs
- TypeDelegator.cs
- ReferencedType.cs
- filewebresponse.cs
- WebPartConnectionsCloseVerb.cs
- BaseValidator.cs
- TaskResultSetter.cs
- DataSet.cs
- ComboBoxRenderer.cs
- ButtonChrome.cs
- RuleSetBrowserDialog.cs