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


C# IVersion类代码示例

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


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

示例1: SourceDump

 public SourceDump(SourceDumperOptions options, UsageDefinition definition, IEnvironment environment,
     IDebugger debugger, IConsole console, IVersion versionGetter,
     IWriterFactory factory)
     : base(options, definition, environment, debugger, console, versionGetter)
 {
     _factory = factory;
 }
开发者ID:stormleoxia,项目名称:lx,代码行数:7,代码来源:SourceDump.cs

示例2: BaseObject

		public BaseObject(int memoryAddress, ArraySegment<byte> originalBytes, IVersion version)
		{
			MemoryAddress = memoryAddress;
			OriginalBytes = originalBytes;
			DatabaseMode = DatabaseModeEnum.Cached;
			Version = version;
		}
开发者ID:craigbrad,项目名称:FMScoutFramework,代码行数:7,代码来源:BaseObject.cs

示例3: CompareTo

 public static int CompareTo(
     IVersion version1,
     IVersion version2
     )
 {
     int comparison = 0;
       {
     IList<int> version1Numbers = version1.Numbers;
     IList<int> version2Numbers = version2.Numbers;
     for(
       int index = 0,
     length = Math.Min(version1Numbers.Count, version2Numbers.Count);
       index < length;
       index++
       )
     {
       comparison = version1Numbers[index] - version2Numbers[index];
       if(comparison != 0)
     break;
     }
     if(comparison == 0)
     {comparison = version1Numbers.Count - version2Numbers.Count;}
       }
       return Math.Sign(comparison);
 }
开发者ID:n9,项目名称:pdfclown,代码行数:25,代码来源:VersionUtils.cs

示例4: JoinArchive

 public void JoinArchive(string name, IArchive archive, IVersion version = null)
 {
     if (version != null)
         throw new GitHubException("Method JoinArchive with version NotImplemented", new NotImplementedException());
     var path = FullPath(name);
     version = LastVersion(path).AddVersion(1);
     archive.SaveTo(Path.Combine(path, version+".zip"));
 }
开发者ID:Anovi-Soft,项目名称:Git-C-Sharp,代码行数:8,代码来源:FolderProvider.cs

示例5: ProgramDefinition

 protected ProgramDefinition(Options options, UsageDefinition definition, IEnvironment environment,
     IDebugger debugger, IConsole console, IVersion versionGetter)
 {
     _options = options;
     _definition = definition;
     _environment = environment;
     _debugger = debugger;
     _console = console;
     _versionGetter = versionGetter;
 }
开发者ID:stormleoxia,项目名称:lx,代码行数:10,代码来源:ProgramDefinition.cs

示例6: findFMProcess

		// Finds the process and loads it in memory
		public bool findFMProcess ()
		{
			FMProcess fmProcess = new FMProcess ();
			Process[] fmProcesses = Process.GetProcessesByName ("fm");
			uint pid = fmProcesses.Length > 1 ? (uint)fmProcesses[0].Id : (uint)fmProcesses[0].Id;

			if (fmProcesses.Length > 0) {
				uint buffer;
				uint bufferend;
				uint heap;
				uint endaddress;
				if (ProcessMemoryAPI.GetBaseAddress (pid, out buffer, out bufferend, out heap, out endaddress)) {
					fmProcess.Process = fmProcesses [0];
					fmProcess.BaseAddress = (int)buffer;
					fmProcess.HeapAddress = (int)heap;
					fmProcess.EndPoint = (int)endaddress;
					ProcessManager.fmProcess = fmProcess;

					// Search for the current version
					foreach (var versionType in Assembly.GetCallingAssembly().GetTypes().Where(t => typeof(IIVersion).IsAssignableFrom(t))) {
						if (versionType.IsInterface)
							continue;
						var instance = (IIVersion)Activator.CreateInstance (versionType);

						if (instance.SupportsProcess (fmProcess, null)) {
							Version = instance;
							break;
						}
					}
				}
				fmLoaded = (Version != null);
			}

			if (!fmLoaded) {
				// Try to find info about the version
				// Lookup the objects in the memory
				for (int i = fmProcess.BaseAddress; i < fmProcess.EndPoint - 4; i += 4) {
					try {
						int continents = TryGetPointerObjects(i, 0x1c, fmProcess);
						if (continents == 7)
						{
							Debug.WriteLine ("Found a candidate @ 0x{0:X}", i);
							Debug.WriteLine ("Persons: {0}", TryGetPointerObjects(i, 0x3c, fmProcess));
						}
					}
					catch {
					}
				}
			}

			return fmLoaded;
		}
开发者ID:craigbrad,项目名称:FMScoutFramework,代码行数:53,代码来源:GameManager.cs

示例7: ToString

 public static string ToString(
     IVersion version
     )
 {
     StringBuilder versionStringBuilder = new StringBuilder();
       foreach(int number in version.Numbers)
       {
     if(versionStringBuilder.Length > 0)
     {versionStringBuilder.Append('.');}
     versionStringBuilder.Append(number);
       }
       return versionStringBuilder.ToString();
 }
开发者ID:n9,项目名称:pdfclown,代码行数:13,代码来源:VersionUtils.cs

示例8: CreateRevisionSet

        public IRevisionCollection CreateRevisionSet(IVersion version)
        {
            IEnumerable<ILogItem> logItems = this.GetLogItems(version);
            ICollection<IRevision> revisions = new List<IRevision>();
            foreach (ILogItem logItem in logItems)
            {
                IssueCollection issues = this.GetIssues(logItem.Tickets);
                IRevisionOverride overrride = GetOverride(version, logItem.Revision);
                revisions.Add(CreateRevision(logItem, issues, overrride));
            }

            var revisionCollection = new RevisionCollection(revisions);
            return revisionCollection;
        }
开发者ID:JSchofield,项目名称:ReleaseManager,代码行数:14,代码来源:RevisionSetBuilder.cs

示例9: CreateAdapter

 public INakedObjectAdapter CreateAdapter(object domainObject, IOid oid, IVersion version) {
     if (domainObject == null) {
         return null;
     }
     if (oid == null) {
         ITypeSpec objectSpec = metamodel.GetSpecification(domainObject.GetType());
         if (objectSpec.ContainsFacet(typeof (IComplexTypeFacet))) {
             return GetAdapterFor(domainObject);
         }
         if (objectSpec.HasNoIdentity) {
             return AdapterForNoIdentityObject(domainObject);
         }
         return AdapterForExistingObject(domainObject, objectSpec);
     }
     return AdapterForExistingObject(domainObject, oid);
 }
开发者ID:NakedObjectsGroup,项目名称:NakedObjectsFramework,代码行数:16,代码来源:NakedObjectManager.cs

示例10: RivalNation

 public RivalNation(int memoryAddress, ArraySegment<byte>originalBytes, IVersion version)
     : base(memoryAddress, originalBytes, version)
 {
     this.RivalNationOffsets = new RivalNationOffsets(version);
 }
开发者ID:liberostelios,项目名称:FMScoutFramework,代码行数:5,代码来源:RivalNation.cs

示例11: Person

 public Person(int memoryAddress, IVersion version)
     : base(memoryAddress, version)
 {
     this.PersonOffsets = new PersonOffsets(version);
 }
开发者ID:jamesmcc,项目名称:FMScoutFramework,代码行数:5,代码来源:Person.cs

示例12: Continent

 public Continent(int memoryAddress, ArraySegment<byte> originalBytes, IVersion version)
     : base(memoryAddress, originalBytes, version)
 {
 }
开发者ID:joshlatimer,项目名称:FMScoutFramework,代码行数:4,代码来源:Continent.cs

示例13: NationOffsets

 public NationOffsets(IVersion version)
 {
     this.Version = version;
 }
开发者ID:liberostelios,项目名称:FMScoutFramework,代码行数:4,代码来源:NationOffsets.cs

示例14: PlayerStats

 public PlayerStats(int memoryAddress, ArraySegment<byte> originalBytes, IVersion version)
     : base(memoryAddress, originalBytes, version)
 {
 }
开发者ID:joshlatimer,项目名称:FMScoutFramework,代码行数:4,代码来源:PlayerStats.cs

示例15: NationTaxRulesOffsets

 public NationTaxRulesOffsets (IVersion version)
 {
     this.Version = version;
 }
开发者ID:craigbrad,项目名称:FMScoutFramework,代码行数:4,代码来源:NationTaxRulesOffsets.cs


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