Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XmlAutoDetectWriter.cs
- PersonalizablePropertyEntry.cs
- ToolStripTextBox.cs
- DefaultPropertyAttribute.cs
- DbgCompiler.cs
- VectorCollectionConverter.cs
- SubqueryRules.cs
- StructuralType.cs
- odbcmetadatacollectionnames.cs
- DialogResultConverter.cs
- securestring.cs
- SamlAuthorityBinding.cs
- Fx.cs
- DiscoveryInnerClientManaged11.cs
- DependencySource.cs
- DateTimeStorage.cs
- PropertyDescriptor.cs
- MatchingStyle.cs
- NamespaceInfo.cs
- DataSourceCollectionBase.cs
- Literal.cs
- Soap.cs
- UriPrefixTable.cs
- SystemIPGlobalStatistics.cs
- GeometryGroup.cs
- DBSchemaRow.cs
- TableLayoutPanelDesigner.cs
- ExtentJoinTreeNode.cs
- FrameworkElementAutomationPeer.cs
- IPEndPointCollection.cs
- FloatMinMaxAggregationOperator.cs
- DetailsViewInsertedEventArgs.cs
- DesignOnlyAttribute.cs
- EmptyEnumerator.cs
- ConfigurationLoaderException.cs
- ConnectionPool.cs
- ConditionedDesigner.cs
- datacache.cs
- TextBox.cs
- TextDecorationUnitValidation.cs
- XmlNode.cs
- PointCollection.cs
- PropertyOverridesDialog.cs
- precedingquery.cs
- XmlMemberMapping.cs
- EventLogReader.cs
- FilterableAttribute.cs
- PathStreamGeometryContext.cs
- WebScriptMetadataInstanceContextProvider.cs
- WebAdminConfigurationHelper.cs
- BaseParser.cs
- BaseCodeDomTreeGenerator.cs
- DragDropManager.cs
- KeyEventArgs.cs
- DataRow.cs
- WmlLiteralTextAdapter.cs
- ScriptManagerProxy.cs
- ValueTable.cs
- InstanceLockedException.cs
- IEnumerable.cs
- Convert.cs
- XmlObjectSerializerReadContext.cs
- Ipv6Element.cs
- UnauthorizedAccessException.cs
- FtpWebRequest.cs
- AsyncOperation.cs
- RepeaterItem.cs
- Descriptor.cs
- AppSecurityManager.cs
- AssociatedControlConverter.cs
- WorkflowElementDialogWindow.xaml.cs
- MetaTable.cs
- ObjectTypeMapping.cs
- ObservableDictionary.cs
- DataFormat.cs
- Maps.cs
- safelink.cs
- SaveWorkflowCommand.cs
- HttpModuleActionCollection.cs
- KnownAssemblyEntry.cs
- AliasedSlot.cs
- EnumMember.cs
- InternalMappingException.cs
- PhonemeEventArgs.cs
- MustUnderstandSoapException.cs
- XPathNodePointer.cs
- Signature.cs
- HwndSourceParameters.cs
- PngBitmapDecoder.cs
- OrderedDictionaryStateHelper.cs
- ParameterCollection.cs
- BufferedWebEventProvider.cs
- MetabaseSettings.cs
- QilList.cs
- OrderByQueryOptionExpression.cs
- ComboBox.cs
- HtmlInputButton.cs
- DispatcherFrame.cs
- Region.cs
- ActivityValidationServices.cs