当前位置: 首页>>代码示例>>C#>>正文


C# ChangeType类代码示例

本文整理汇总了C#中ChangeType的典型用法代码示例。如果您正苦于以下问题:C# ChangeType类的具体用法?C# ChangeType怎么用?C# ChangeType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ChangeType类属于命名空间,在下文中一共展示了ChangeType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HasChangeType

 public static void HasChangeType(ChangeType type, params SyncAction[] objects)
 {
     foreach (var obj in objects)
     {
         Assert.Equal(type, obj.Type);
     }
 }
开发者ID:ap0llo,项目名称:SyncTool,代码行数:7,代码来源:SyncAssert.cs

示例2: ChangeSetting

        protected virtual ExitCode ChangeSetting(IClientSettings clientSettings, SettingsLocation location, ChangeType changeType)
        {
            // Don't want to save defaults for options that apply directly to this command
            List<string> settingsToSkip = new List<string>();
            settingsToSkip.AddRange(StandardOptions.List);
            settingsToSkip.AddRange(StandardOptions.Add);
            settingsToSkip.AddRange(StandardOptions.Remove);

            foreach (var setting in this.Arguments.Options)
            {
                if (settingsToSkip.Contains(setting.Key, StringComparer.OrdinalIgnoreCase)) { continue; }
                bool success = false;
                switch (changeType)
                {
                    case ChangeType.Add:
                        this.Loggers[LoggerType.Status].Write(XTaskStrings.DefaultsSavingProgress, setting.Key);
                        success = clientSettings.SaveSetting(location, setting.Key, setting.Value);
                        break;
                    case ChangeType.Remove:
                        this.Loggers[LoggerType.Status].Write(XTaskStrings.DefaultsRemovingProgress, setting.Key);
                        success = clientSettings.RemoveSetting(location, setting.Key);
                        break;
                }

                this.Loggers[LoggerType.Status].WriteLine(success ? XTaskStrings.Succeeded : XTaskStrings.Failed);
            }

            return ExitCode.Success;
        }
开发者ID:Priya91,项目名称:XTask,代码行数:29,代码来源:DefaultsTask.cs

示例3: PythonTypeChangedEventArgs

 public PythonTypeChangedEventArgs(CodeContext context, SymbolId changed, ChangeType type, object previous, object newValue) {
     _context = context;
     _changed = changed;
     _type = type;
     _previous = previous;
     _newValue = newValue;
 }
开发者ID:JamesTryand,项目名称:IronScheme,代码行数:7,代码来源:PythonTypeChangedEventArgs.cs

示例4: ChangeEvent

 public ChangeEvent(ChangeType type, UniqueId beforeId, UniqueId afterId, Instant versionInstant)
 {
     _type = type;
     _beforeId = beforeId;
     _afterId = afterId;
     _versionInstant = versionInstant;
 }
开发者ID:BietteMaxime,项目名称:OG-DotNet,代码行数:7,代码来源:ChangeEvent.cs

示例5: HistoryItem

 public HistoryItem(StreamReader sr)
 {
     this.user = sr.ReadLine();
     this.type = (ChangeType)Convert.ToInt32(sr.ReadLine());
     this.otherInfo = sr.ReadLine();
     this.time = new DateTime(Convert.ToInt64(sr.ReadLine()));
 }
开发者ID:uwcbc,项目名称:uwcbc-marimba,代码行数:7,代码来源:HistoryItem.cs

示例6: ChangeEntry

		/// <summary>
		/// Initializes a new instance.
		/// </summary>
		internal ChangeEntry(ChangeType changeType, IUberMap map, object entity)
		{
			UberMap = map;
			ChangeType = changeType;
			Entity = entity;
			MetaEntity = MetaEntity.Locate(entity);
		}
开发者ID:JackWangCUMT,项目名称:Kerosene.ORM,代码行数:10,代码来源:ChangeEntry.cs

示例7: Change

 public Change(string resultRow)
 {
     string[] separated = resultRow.Split(' ');
     ChangeType = GetFromString(separated[0]);
     FullPath = separated[1];
     Name = Path.GetFileName(separated[1]);
 }
开发者ID:dhalfageme,项目名称:plastic-cmdrunner,代码行数:7,代码来源:Change.cs

示例8: ChangeAction

 public ChangeAction(ChangeType changeType, TranscriptionElement changedElement, TranscriptionIndex changeIndex, int changeAbsoluteIndex)
 {
     _changeType = changeType;
     _changedElement = changedElement;
     _changeTranscriptionIndex = changeIndex;
     _changeAbsoluteIndex = changeAbsoluteIndex;
 }
开发者ID:Ttxman,项目名称:NanoTrans,代码行数:7,代码来源:ChangeAction.cs

示例9: FileChange

 internal FileChange(string directory, string path, ChangeType type)
 {
     Debug.Assert(path != null);
     _directory = directory;
     _path = path;
     _chageType = type;
 }
开发者ID:TerabyteX,项目名称:corefxlab,代码行数:7,代码来源:FileChange.cs

示例10: ProviderChangeMessage

 /// <summary>
 /// This constructor is used when triggering a provider change
 /// </summary>
 /// <param name="providerId">Provider Id</param>
 /// <param name="aigSubscriberId">Subscriber Id</param>
 /// <param name="changeType">Change Type</param>
 /// <param name="isAttributeUpdate">Attribute update</param>
 /// <param name="isRateUpdate">Rate update</param>
 /// <param name="isFullUpdate">Full update</param>
 private ProviderChangeMessage(Guid providerId, Guid aigSubscriberId, ChangeType changeType, bool isAttributeUpdate, bool isRateUpdate, bool isFullUpdate)
     : base(providerId, aigSubscriberId, changeType)
 {
     IsAttributeUpdate = isAttributeUpdate;
     IsRateUpdate = isRateUpdate;
     IsFullUpdate = isFullUpdate;
 }
开发者ID:ognjenm,项目名称:egle,代码行数:16,代码来源:ProviderChangeMessage.cs

示例11: AssertChange

		private void AssertChange(string name, ChangeType change)
		{
			RootDetail r1 = ExtractAttribute(Subjects.One, name);
			RootDetail r2 = ExtractAttribute(Subjects.Two, name);

			Assert.AreEqual(change, r1.PerformCompare(r2));
		}
开发者ID:bisato,项目名称:bitdiffer,代码行数:7,代码来源:Attributes.cs

示例12: Transition

 public virtual void Transition(BaseScreen transitionTo, ChangeType changeType)
 {
     Transitioning = true;
     TransitionTo = transitionTo;
     ChangeType = changeType;
     transitionTimer = TimeSpan.Zero;
 }
开发者ID:AlanWills,项目名称:Mythology,代码行数:7,代码来源:BaseScreen.cs

示例13: TableChanges

 public TableChanges(Table oldTable, Table newTable, ChangeType changeType)
 {
     this.OldTable = oldTable;
     this.NewTable = newTable;
     this.ChangeType = changeType;
     this.ColumnsChanged = new List<ColumnChanges>();
 }
开发者ID:569550384,项目名称:Rafy,代码行数:7,代码来源:TableChanges.cs

示例14: OnAppliedChange

 void OnAppliedChange(ChangeType type, string newPath, string oldPath = null)
 {
     if (AppliedChange != null)
     {
         AppliedChange(this, new MyAppliedChangeEventArgs(type, newPath, oldPath));
     }
 }
开发者ID:exaphaser,项目名称:megadesktop,代码行数:7,代码来源:ChangeApplier.cs

示例15: IsInOriginalDocument

 public static bool IsInOriginalDocument(ChangeType t)
 {
     switch (t)
     {
         case ChangeType.None:
         case ChangeType.Deletion:
         case ChangeType.MoveSource:
         case ChangeType.FormatChange:
         case ChangeType.Match:
         case ChangeType.ChangedText:
         case ChangeType.StyleChangeText:
             return true;
         case ChangeType.MoveDestination:
         case ChangeType.Insertion:
         case ChangeType.MovedDeletion:
         case ChangeType.CellInserted:
         case ChangeType.CellDeleted:
         case ChangeType.CellMerged:
         case ChangeType.CellIsPadding:
         case ChangeType.ChangeNumber:
         case ChangeType.Delimiter:
         case ChangeType.StyleChangedLabel:
         case ChangeType.Comment:
         case ChangeType.InsertedComment:
         case ChangeType.DeletedComment:
         case ChangeType.ChangedComment:
         default:
             return false;
     }
 }
开发者ID:killbug2004,项目名称:WSProf,代码行数:30,代码来源:Utils.cs


注:本文中的ChangeType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。