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
- HostedBindingBehavior.cs
- AssemblyBuilder.cs
- DetailsView.cs
- CharacterBuffer.cs
- ComponentEvent.cs
- WebBrowser.cs
- DataControlFieldCell.cs
- FormViewRow.cs
- ObjectViewQueryResultData.cs
- Opcode.cs
- RootBrowserWindowAutomationPeer.cs
- ListMarkerLine.cs
- SqlTriggerContext.cs
- StylusLogic.cs
- RequestQueryParser.cs
- ISO2022Encoding.cs
- TreeNode.cs
- SerialErrors.cs
- SpecularMaterial.cs
- EncoderParameter.cs
- EUCJPEncoding.cs
- DesignerCommandAdapter.cs
- CodeTypeDelegate.cs
- DocumentCollection.cs
- CodeSubDirectoriesCollection.cs
- SafeNativeMethods.cs
- ProfilePropertyMetadata.cs
- ActivityDesignerHelper.cs
- DataGridTextBox.cs
- AnnotationAdorner.cs
- WebExceptionStatus.cs
- StoreContentChangedEventArgs.cs
- HttpWebResponse.cs
- PropertyItem.cs
- KeyConstraint.cs
- TitleStyle.cs
- DescendentsWalker.cs
- XmlNamespaceDeclarationsAttribute.cs
- COSERVERINFO.cs
- ProcessHostFactoryHelper.cs
- VariableQuery.cs
- Int32Storage.cs
- SmtpException.cs
- sortedlist.cs
- SiteMap.cs
- ObjectHandle.cs
- ListItem.cs
- QilVisitor.cs
- TemplateParser.cs
- BinaryCommonClasses.cs
- MasterPageCodeDomTreeGenerator.cs
- Tag.cs
- HyperLink.cs
- StateDesigner.CommentLayoutGlyph.cs
- SingleObjectCollection.cs
- Int16AnimationUsingKeyFrames.cs
- UniqueSet.cs
- Win32.cs
- CorrelationService.cs
- SingleAnimation.cs
- FrameworkObject.cs
- ChannelSinkStacks.cs
- StoreContentChangedEventArgs.cs
- EastAsianLunisolarCalendar.cs
- UncommonField.cs
- PublisherMembershipCondition.cs
- TransformerTypeCollection.cs
- DataContractSerializerSection.cs
- _NtlmClient.cs
- ActivityExecutionContext.cs
- RangeEnumerable.cs
- ImmutableCommunicationTimeouts.cs
- SessionStateModule.cs
- RandomDelayQueuedSendsAsyncResult.cs
- XXXInfos.cs
- DiscreteKeyFrames.cs
- WebPartsPersonalization.cs
- UnionCodeGroup.cs
- remotingproxy.cs
- remotingproxy.cs
- DataGridCheckBoxColumn.cs
- DetailsViewRow.cs
- SecurityPermission.cs
- ToolStripProgressBar.cs
- FacetChecker.cs
- _TLSstream.cs
- TextEditorParagraphs.cs
- MLangCodePageEncoding.cs
- ToolboxItemCollection.cs
- WebBrowser.cs
- RNGCryptoServiceProvider.cs
- WizardPanel.cs
- SqlTriggerAttribute.cs
- BinaryCommonClasses.cs
- Transform3DGroup.cs
- DragCompletedEventArgs.cs
- SettingsSection.cs
- FilteredAttributeCollection.cs
- OleDragDropHandler.cs
- WebServiceParameterData.cs