Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / Animation / ResolvedKeyFrameEntry.cs / 1 / 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. //------------------------------------------------------------------------------ // 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
- FastEncoderWindow.cs
- PreviewPrintController.cs
- FieldNameLookup.cs
- DynamicMethod.cs
- ResourceFallbackManager.cs
- IPAddress.cs
- ToolBarPanel.cs
- SerializationException.cs
- X509Utils.cs
- ZipPackagePart.cs
- XPathMultyIterator.cs
- IconEditor.cs
- ViewSimplifier.cs
- DetailsViewDeletedEventArgs.cs
- MarginsConverter.cs
- SafeRightsManagementPubHandle.cs
- AuthenticationModuleElementCollection.cs
- BinaryKeyIdentifierClause.cs
- PresentationAppDomainManager.cs
- MetaForeignKeyColumn.cs
- Configuration.cs
- InstanceContextMode.cs
- CustomAttribute.cs
- TextUtf8RawTextWriter.cs
- LinqToSqlWrapper.cs
- HtmlTitle.cs
- _NegotiateClient.cs
- ObjectDisposedException.cs
- SettingsSection.cs
- ProvidersHelper.cs
- SignedInfo.cs
- EntityContainerRelationshipSet.cs
- ITreeGenerator.cs
- RegexCompilationInfo.cs
- DocumentReferenceCollection.cs
- WindowHelperService.cs
- XPathMultyIterator.cs
- XmlAttributeAttribute.cs
- Stack.cs
- CriticalFinalizerObject.cs
- XmlSerializerFactory.cs
- LoopExpression.cs
- SQLGuidStorage.cs
- TogglePatternIdentifiers.cs
- TypeTypeConverter.cs
- AmbientLight.cs
- IssuedTokenParametersElement.cs
- Int64Storage.cs
- HttpListenerPrefixCollection.cs
- Debugger.cs
- Message.cs
- ContentType.cs
- MeshGeometry3D.cs
- ValidatingReaderNodeData.cs
- TracingConnectionInitiator.cs
- MetadataProperty.cs
- TableRow.cs
- TableRowCollection.cs
- MediaSystem.cs
- RowUpdatedEventArgs.cs
- NTAccount.cs
- CallbackHandler.cs
- DataQuery.cs
- RequestTimeoutManager.cs
- MetadataUtilsSmi.cs
- TdsParserHelperClasses.cs
- MemoryResponseElement.cs
- ControlPropertyNameConverter.cs
- Int32RectValueSerializer.cs
- LogEntryDeserializer.cs
- DecoderFallbackWithFailureFlag.cs
- ArrayListCollectionBase.cs
- XPathAncestorQuery.cs
- UnsafeNativeMethods.cs
- Canonicalizers.cs
- XmlHierarchicalDataSourceView.cs
- StateItem.cs
- FixedSOMElement.cs
- XmlWrappingReader.cs
- ValueTypeFieldReference.cs
- webeventbuffer.cs
- UTF8Encoding.cs
- ManipulationInertiaStartingEventArgs.cs
- MimeParameterWriter.cs
- DispatchWrapper.cs
- DocumentPageView.cs
- OrthographicCamera.cs
- ExpressionBindingsDialog.cs
- SQLSingle.cs
- TransactionManager.cs
- ActivationArguments.cs
- FormViewAutoFormat.cs
- Action.cs
- Emitter.cs
- RSAOAEPKeyExchangeFormatter.cs
- ListViewItem.cs
- CornerRadiusConverter.cs
- CodeTypeReferenceExpression.cs
- EntityDataSourceWrapperCollection.cs
- CompilerGeneratedAttribute.cs