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


C# IUnresolvedTypeDefinition类代码示例

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


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

示例1: CreateEventCreationCompletionData

 public ICompletionData CreateEventCreationCompletionData(string varName, IType delegateType, IEvent evt,
                                                          string parameterDefinition,
                                                          IUnresolvedMember currentMember,
                                                          IUnresolvedTypeDefinition currentType)
 {
     return new CompletionData(varName);
 }
开发者ID:CSRedRat,项目名称:Omnisharp,代码行数:7,代码来源:CompletionDataFactory.cs

示例2: AddType

		public void AddType (IUnresolvedTypeDefinition type, string shortType)
		{
			if (type == null || string.IsNullOrEmpty (shortType) || usedTypes.Contains (shortType))
				return;
			usedTypes.Add (shortType);
			result.Add (Factory.CreateTypeCompletionData (type, shortType));
		}
开发者ID:N3X15,项目名称:ILSpy,代码行数:7,代码来源:CompletionDataWrapper.cs

示例3: SuggestedHandlerCompletionData

		public SuggestedHandlerCompletionData (Project project, CodeMemberMethod methodInfo, IType codeBehindClass, IUnresolvedTypeDefinition codeBehindClassPart)
		{
			this.project = project;
			this.methodInfo = methodInfo;
			this.codeBehindClass = codeBehindClass;
			this.codeBehindClassPart = codeBehindClassPart;
		}
开发者ID:brantwedel,项目名称:monodevelop,代码行数:7,代码来源:SuggestedHandlerCompletionData.cs

示例4: DefaultUnresolvedField

		public DefaultUnresolvedField(IUnresolvedTypeDefinition declaringType, string name)
		{
			this.SymbolKind = SymbolKind.Field;
			this.DeclaringTypeDefinition = declaringType;
			this.Name = name;
			if (declaringType != null)
				this.UnresolvedFile = declaringType.UnresolvedFile;
		}
开发者ID:0xb1dd1e,项目名称:NRefactory,代码行数:8,代码来源:DefaultUnresolvedField.cs

示例5: DefaultUnresolvedTypeDefinition

		public DefaultUnresolvedTypeDefinition(IUnresolvedTypeDefinition declaringTypeDefinition, string name)
		{
			this.SymbolKind = SymbolKind.TypeDefinition;
			this.DeclaringTypeDefinition = declaringTypeDefinition;
			this.namespaceName = declaringTypeDefinition.Namespace;
			this.Name = name;
			this.UnresolvedFile = declaringTypeDefinition.UnresolvedFile;
		}
开发者ID:sphynx79,项目名称:dotfiles,代码行数:8,代码来源:DefaultUnresolvedTypeDefinition.cs

示例6: DefaultUnresolvedEvent

		public DefaultUnresolvedEvent(IUnresolvedTypeDefinition declaringType, string name)
		{
			this.EntityType = EntityType.Event;
			this.DeclaringTypeDefinition = declaringType;
			this.Name = name;
			if (declaringType != null)
				this.ParsedFile = declaringType.ParsedFile;
		}
开发者ID:slodge,项目名称:monodevelop,代码行数:8,代码来源:DefaultUnresolvedEvent.cs

示例7: DefaultUnresolvedTypeDefinition

		public DefaultUnresolvedTypeDefinition(IUnresolvedTypeDefinition declaringTypeDefinition, string name)
		{
			this.EntityType = EntityType.TypeDefinition;
			this.DeclaringTypeDefinition = declaringTypeDefinition;
			this.namespaceName = declaringTypeDefinition.Namespace;
			this.Name = name;
			this.ParsedFile = declaringTypeDefinition.ParsedFile;
		}
开发者ID:KAW0,项目名称:Alter-Native,代码行数:8,代码来源:DefaultUnresolvedTypeDefinition.cs

示例8: DefaultUnresolvedMethod

		public DefaultUnresolvedMethod(IUnresolvedTypeDefinition declaringType, string name)
		{
			this.EntityType = EntityType.Method;
			this.DeclaringTypeDefinition = declaringType;
			this.Name = name;
			if (declaringType != null)
				this.UnresolvedFile = declaringType.UnresolvedFile;
		}
开发者ID:Gobiner,项目名称:ILSpy,代码行数:8,代码来源:DefaultUnresolvedMethod.cs

示例9: VB6UnresolvedMethod

 /// <summary>
 /// Initializes a new instance of the <see cref="VB6UnresolvedMethod"/> class.
 /// </summary>
 /// <param name="method">The instance of <see cref="IVbMethod"/> that is the source of this entity.</param>
 /// <param name="file">The file that is the source of this entity.</param>
 /// <param name="typeReference">The <see cref="IUnresolvedTypeReference"/> that this member is a child of. May be null.</param>
 /// <param name="typeDefinition">The <see cref="IUnresolvedTypeDefinition"/> that this entity is a child of. May be null.</param>
 internal VB6UnresolvedMethod(IVbMethod method, IUnresolvedFile file, ITypeReference typeReference, IUnresolvedTypeDefinition typeDefinition)
     : base(method, file, typeReference, typeDefinition)
 {
     if (method == null)
     {
         throw new ArgumentNullException("method");
     }
 }
开发者ID:mks786,项目名称:vb6leap,代码行数:15,代码来源:VB6UnresolvedMethod.cs

示例10: NewPartialCompletionData

 public NewPartialCompletionData(int declarationBegin, IUnresolvedTypeDefinition type, IUnresolvedMember member)
 {
     DeclarationBeginningIndex = declarationBegin;
     Type = type;
     Member = member;
     // check this:
     DeclarationCategory = type.SymbolKind.ResolveDeclarationCategoryFromSymbolKind();
     SetDefaultText(member.Name);
 }
开发者ID:uluhonolulu,项目名称:QCCodingServices.NET,代码行数:9,代码来源:NewPartialCompletionData.cs

示例11: EventCreationCompletionData

		public EventCreationCompletionData(string handlerName, IType delegateType, IEvent evt, string parameterList, IUnresolvedMember callingMember, IUnresolvedTypeDefinition declaringType, CSharpResolver contextAtCaret)
		{
			if (string.IsNullOrEmpty(handlerName)) {
				handlerName = (evt != null ? evt.Name : "Handle");
			}
			this.handlerName = handlerName;
			this.DisplayText = StringParser.Parse("${res:CSharpBinding.Refactoring.EventCreation.EventHandlerText}", new[] { new StringTagPair("HandlerName", handlerName) });
			this.delegateTypeReference = delegateType.ToTypeReference();
			this.isStatic = callingMember != null && callingMember.IsStatic;
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:10,代码来源:EventCreationCompletionData.cs

示例12: EventCreationCompletionData

		public EventCreationCompletionData(string handlerName, IType delegateType, IEvent evt, string parameterList, IUnresolvedMember callingMember, IUnresolvedTypeDefinition declaringType, CSharpResolver contextAtCaret)
		{
			if (string.IsNullOrEmpty(handlerName)) {
				handlerName = (evt != null ? evt.Name : "Handle");
			}
			this.handlerName = handlerName;
			this.DisplayText = "<Create " + handlerName + ">";
			this.delegateTypeReference = delegateType.ToTypeReference();
			this.isStatic = callingMember != null && callingMember.IsStatic;
		}
开发者ID:fanyjie,项目名称:SharpDevelop,代码行数:10,代码来源:EventCreationCompletionData.cs

示例13: VB6UnresolvedEntityBase

        /// <summary>
        /// Initializes a new instance of the <see cref="VB6UnresolvedEntityBase"/> class.
        /// </summary>
        /// <param name="file">The file that is the source of this entity.</param>
        /// <param name="typeDefinition">The <see cref="IUnresolvedTypeDefinition"/> that this entity is a child of. May be null.</param>
        protected VB6UnresolvedEntityBase(IUnresolvedFile file, IUnresolvedTypeDefinition typeDefinition)
            : this()
        {
            this.UnresolvedFile = file;

            VB6UnresolvedFile vb6File = (VB6UnresolvedFile)file;
            this.VbpProject = vb6File.Project;

            this.DeclaringTypeDefinition = typeDefinition;
        }
开发者ID:mks786,项目名称:vb6leap,代码行数:15,代码来源:VB6UnresolvedEntityBase.cs

示例14: EventCompletionData

            public EventCompletionData(string varName, IType delegateType, IEvent evt, string parameterDefinition, IUnresolvedMember currentMember, IUnresolvedTypeDefinition currentType)
            {
                SetDefaultText(varName);
                DeclarationCategory = DeclarationCategory.Event;
                // what should we do with parameterDefinition???
                DelegateType = delegateType;
                CurrentMember = currentMember;
                CurrentType = currentType;

                //Description = currentMember
            }
开发者ID:uluhonolulu,项目名称:QCCodingServices.NET,代码行数:11,代码来源:EventCompletionData.cs

示例15: MakeViewModel

 ContextActionViewModel MakeViewModel(IUnresolvedTypeDefinition entity)
 {
     var ambience = AmbienceService.GetCurrentAmbience();
     ambience.ConversionFlags = ConversionFlags.ShowDeclaringType | ConversionFlags.ShowTypeParameterList;
     return new ContextActionViewModel {
         Action = new GoToDomRegionAction(entity.Region),
         Image = IconService.GetImageSource(IconService.GetImageForFile(entity.Region.FileName)),
         Comment = string.Format("(in {0})", Path.GetDirectoryName(entity.Region.FileName)),
         ChildActions = null
     };
 }
开发者ID:ichengzi,项目名称:SharpDevelop,代码行数:11,代码来源:GoToDefinition.cs


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