Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / ResolvedKeyFrameEntry.cs / 1305600 / ResolvedKeyFrameEntry.cs
//------------------------------------------------------------------------------
// Microsoft Windows Client Platform
// Copyright (c) Microsoft Corporation
//
// File: ResolvedKeyFrameEntry.cs
//-----------------------------------------------------------------------------
namespace System.Windows.Media.Animation
{
internal struct ResolvedKeyFrameEntry : IComparable
{
internal Int32 _originalKeyFrameIndex;
internal TimeSpan _resolvedKeyTime;
public Int32 CompareTo(object other)
{
ResolvedKeyFrameEntry otherEntry = (ResolvedKeyFrameEntry)other;
if (otherEntry._resolvedKeyTime > _resolvedKeyTime)
{
return -1;
}
else if (otherEntry._resolvedKeyTime < _resolvedKeyTime)
{
return 1;
}
else
{
if (otherEntry._originalKeyFrameIndex > _originalKeyFrameIndex)
{
return -1;
}
else if (otherEntry._originalKeyFrameIndex < _originalKeyFrameIndex)
{
return 1;
}
else
{
return 0;
}
}
}
}
}
// 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
- TimeSpanValidator.cs
- EventLogQuery.cs
- SocketInformation.cs
- HashAlgorithm.cs
- AnnotationAuthorChangedEventArgs.cs
- LingerOption.cs
- ConfigXmlReader.cs
- PropertyGeneratedEventArgs.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- HttpConfigurationSystem.cs
- XPathAxisIterator.cs
- MailAddress.cs
- MetadataArtifactLoaderCompositeFile.cs
- FormDocumentDesigner.cs
- StringReader.cs
- WebPartAuthorizationEventArgs.cs
- Vector3dCollection.cs
- EffectiveValueEntry.cs
- TreeViewImageKeyConverter.cs
- TypedTableBaseExtensions.cs
- ScriptingProfileServiceSection.cs
- SrgsOneOf.cs
- AnimationLayer.cs
- ValueProviderWrapper.cs
- XPathNodePointer.cs
- AnnotationResource.cs
- GridViewSortEventArgs.cs
- PopupEventArgs.cs
- ReferentialConstraint.cs
- InstancePersistenceCommand.cs
- AppDomain.cs
- ExpressionEditorAttribute.cs
- HMACMD5.cs
- ClassHandlersStore.cs
- SmiContextFactory.cs
- RootBrowserWindowAutomationPeer.cs
- ThicknessAnimationUsingKeyFrames.cs
- Suspend.cs
- ListControlConvertEventArgs.cs
- TraceLevelHelper.cs
- OleCmdHelper.cs
- SingleStorage.cs
- DotAtomReader.cs
- ReflectionTypeLoadException.cs
- XmlSchemaException.cs
- SubtreeProcessor.cs
- GeometryHitTestResult.cs
- IItemProperties.cs
- HelloOperation11AsyncResult.cs
- ZipIOLocalFileHeader.cs
- BaseTemplateCodeDomTreeGenerator.cs
- _SafeNetHandles.cs
- CodeSnippetStatement.cs
- SmiEventStream.cs
- XmlReaderSettings.cs
- ConfigXmlWhitespace.cs
- EditingCommands.cs
- DispatcherOperation.cs
- CodeConstructor.cs
- SqlUserDefinedTypeAttribute.cs
- TextContainerChangedEventArgs.cs
- BooleanFunctions.cs
- IEnumerable.cs
- Nullable.cs
- RuntimeResourceSet.cs
- SafeBitVector32.cs
- MessageHeaderInfoTraceRecord.cs
- BuildResult.cs
- ZipIOFileItemStream.cs
- Int16AnimationUsingKeyFrames.cs
- HttpApplicationFactory.cs
- TypeValidationEventArgs.cs
- GatewayDefinition.cs
- Label.cs
- WindowsGraphicsWrapper.cs
- ContentType.cs
- MetadataSource.cs
- TableItemPatternIdentifiers.cs
- Condition.cs
- MenuBindingsEditor.cs
- BaseConfigurationRecord.cs
- SqlRecordBuffer.cs
- PropertyToken.cs
- RegexMatch.cs
- ConcurrentQueue.cs
- WinInetCache.cs
- Matrix3D.cs
- HealthMonitoringSectionHelper.cs
- WinOEToolBoxItem.cs
- FormViewUpdatedEventArgs.cs
- TargetParameterCountException.cs
- ModelTreeEnumerator.cs
- ResetableIterator.cs
- WebPartCatalogCloseVerb.cs
- Columns.cs
- Soap.cs
- HwndAppCommandInputProvider.cs
- WebPartDisplayModeCollection.cs
- RecordManager.cs
- ZipIOCentralDirectoryBlock.cs