• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ISource类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: Convert

		public Convert(LIRMethod parent, ISource source, LIRType sourceType, IDestination dest, LIRType destType) : base(parent, LIROpCode.Convert)
		{
			Source = source;
			SourceType = sourceType;
			Destination = dest;
			DestinationType = destType;
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:7,代码来源:Convert.cs


示例2: CallIndirect

		public CallIndirect(LIRMethod parent, ISource targetMethod, IEnumerable<ISource> sources = null, IDestination returnValueDest = null) : base(parent, LIROpCode.CallIndirect)
		{
			this.TargetMethod = targetMethod;
			if (sources != null)
				Sources.AddRange(sources);
			this.ReturnValueDestination = returnValueDest;
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:7,代码来源:CallIndirect.cs


示例3: GenerateSchema

 /// <summary>
 /// Generates a list of commands used to modify the source. If it does not exist prior, the
 /// commands will create the source from scratch. Otherwise the commands will only add new
 /// fields, tables, etc. It does not delete old fields.
 /// </summary>
 /// <param name="DesiredStructure">Desired source structure</param>
 /// <param name="Source">Source to use</param>
 /// <returns>List of commands generated</returns>
 public IEnumerable<string> GenerateSchema(ISource DesiredStructure, ISourceInfo Source)
 {
     Contract.Requires<ArgumentNullException>(Source != null, "Source");
     return SchemaGenerators.ContainsKey(Source.SourceType) ?
         SchemaGenerators[Source.SourceType].GenerateSchema(DesiredStructure, Source) :
         new List<string>();
 }
开发者ID:JaCraig,项目名称:Craig-s-Utility-Library,代码行数:15,代码来源:Manager.cs


示例4: AddToSourceLocations

 public static void AddToSourceLocations(Object obj,ISource location)
 {
     var source = GetOrSet(obj);
     if (source != null) {
         source.Add(location);
     }
 }
开发者ID:NRequire,项目名称:nrequire,代码行数:7,代码来源:SourceLocations.cs


示例5: Add

 public SourceLocations Add(ISource source)
 {
     if (!m_sourcesByName.ContainsKey(source.SourceName)) {
         m_sourcesByName.Add(source.SourceName,source);
     }
     return this;
 }
开发者ID:NRequire,项目名称:nrequire,代码行数:7,代码来源:SourceLocations.cs


示例6: GetSections

        public IEnumerable<ISection> GetSections(ISource source)
        {
            var context = new Context
            {
                CurrentSource = source,
                CurrentState = State.WhiteSpace,
                CurrentPosition = SourcePosition.InitialPosition(),
                CurrentText = string.Empty
            };

            char? prev = null;
            ISection section = null;
            foreach (var c in source.GetChars())
            {
                if (!prev.HasValue)
                {
                    prev = c;
                    continue;
                }
                
                section = Analyze(prev, c, context);
                if (section != null)
                    yield return section;
                prev = c;
            }
            section = Analyze(prev, null, context);
            if (section != null)
                yield return section;
            section = EndOfFileActions(context);
            if (section != null)
                yield return section;
        }
开发者ID:lucifersam1982,项目名称:zest,代码行数:32,代码来源:Sectioner.cs


示例7: HasAuthorization

		public bool HasAuthorization(ISource aDoc)
		{
			//Check if user isn't set, or if he isn't creator or collaborator.
			if (Context.Current.User == null || (!IsCreator(aDoc) && !IsCollaborator(aDoc)))
				return false;
			return true;
		}
开发者ID:willemda,项目名称:FoireMuses,代码行数:7,代码来源:SourceController.cs


示例8: Load

 /// <summary>
 /// Loads a waves.bin file
 /// </summary>
 public override object Load( ISource source, LoadParameters parameters )
 {
     using ( Stream stream = ( ( IStreamSource )source ).Open( ) )
     {
         return WaveAnimation.Load( stream );
     }
 }
开发者ID:johann-gambolputty,项目名称:robotbastards,代码行数:10,代码来源:WaveAnimationLoader.cs


示例9: LoggingSourceDecorator

 /// <summary>
 /// Initializing constructor
 /// </summary>
 /// <param name="contained">Tracker source object whose calls are to be logged</param>
 /// <param name="logWriter">TextWriter which will receive log output</param>
 /// <param name="config">Configuration object for the LoggingSourceDecorator</param>
 public LoggingSourceDecorator( ISource              contained,
                                TextWriter           logWriter,
                                LoggingSourceConfig  config     ) : base( contained )
 {
     _logWriter = logWriter;
     _config = new LoggingSourceConfig( config );
 }
开发者ID:dxm007,项目名称:TrackerSync,代码行数:13,代码来源:LoggingSourceDecorator.cs


示例10: FeedPropertiesDialog

        public FeedPropertiesDialog(ISource f)
            : base(WindowType.Toplevel)
        {
            feed = f;

            Title = "\""+feed.Name+"\" Properties";
            Icon = feed.Favicon;
            BorderWidth = 5;
            DeleteEvent += OnClose;

            vbox = new VBox();
            vbox.Spacing = 6;
            Add(vbox);

            notebook = new Notebook();
            vbox.PackStart(notebook, false, false, 0);

            bbox = new HButtonBox();
            bbox.Layout = ButtonBoxStyle.End;
            vbox.PackStart(bbox, false, false, 0);

            AddGeneralTab();
            AddTagsTab();
            AddCloseButton();
        }
开发者ID:wfarr,项目名称:newskit,代码行数:25,代码来源:Summa.Gui.FeedPropertiesDialog.cs


示例11: Unary

		public Unary(LIRMethod parent, ISource src, IDestination dest, UnaryOperation op, LIRType argType) : base(parent, LIROpCode.Unary)
		{
			Source = src;
			Destination = dest;
			Operation = op;
			ArgumentType = argType;
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:7,代码来源:Unary.cs


示例12: Equals

 public bool Equals(ISource other)
 {
     if (other == null) return false;
     if (other == this) return true;
     var ot = other as TextSource;
     if (ot != null) { return ot.Content == this.Content; }
     return false;
 }
开发者ID:yanyitec,项目名称:yitec,代码行数:8,代码来源:TextSource.cs


示例13: ModifierBase

 protected ModifierBase(string type, PhaseCode startPhase, ISource source, ICardInPlay target, TimeScope duration, int value)
     : base("Modifier", GetText(target, type, value), source)
 {
     this.StartPhase = startPhase;
     this.Target = target;
     this.Duration = duration;
     this.Value = value;
 }
开发者ID:bossaia,项目名称:alexandrialibrary,代码行数:8,代码来源:ModifierBase.cs


示例14: CanLoad

 /// <summary>
 /// Returns true if the specified source can be loaded
 /// </summary>
 public override bool CanLoad( ISource source )
 {
     if ( source is IFolder )
     {
         return ( ( IFolder )source ).Contains( "*.md3" );
     }
     return source.HasExtension( "md3" );
 }
开发者ID:johann-gambolputty,项目名称:robotbastards,代码行数:11,代码来源:Loader.cs


示例15: TupleValue

        public TupleValue(DataReference reference, int index)
        {
            var list = reference.Dereference();

            Source = list as ISource;

            Index = index;
        }
开发者ID:geoffles,项目名称:Foobricator,代码行数:8,代码来源:TupleValue.cs


示例16: Math

		public Math(LIRMethod parent, ISource srcA, ISource srcB, IDestination dest, MathOperation op, LIRType argType) : base(parent, LIROpCode.Math)
		{
			SourceA = srcA;
			SourceB = srcB;
			Destination = dest;
			Operation = op;
			ArgumentType = argType;
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:8,代码来源:Math.cs


示例17: LexicalAnalyzer

 internal LexicalAnalyzer(ISource source)
 {
     _source = source;
     _tokens = new List<Token>();
     _buffer = new List<char>();
     _tokenLineStart = 1;
     _tokenColumnStart = 1;
 }
开发者ID:mholo65,项目名称:ProtobufGenerator,代码行数:8,代码来源:LexicalAnalyzer.cs


示例18: Compare

		public Compare(LIRMethod parent, ISource sourceA, ISource sourceB, IDestination destination, LIRType type, CompareCondition condition) : base(parent, LIROpCode.Compare)
		{
			this.SourceA = sourceA;
			this.SourceB = sourceB;
			this.Destination = destination;
			this.Type = type;
			this.Condition = condition;
		}
开发者ID:carriercomm,项目名称:Proton-1,代码行数:8,代码来源:Compare.cs


示例19: Update

		public Result<ISource> Update(string aSourceId, string rev, ISource aDoc, Result<ISource> aResult)
		{
			ArgCheck.NotNullNorEmpty("aSourceId", aSourceId);
			ArgCheck.NotNull("aSource", aDoc);

			Coroutine.Invoke(UpdateHelper, aSourceId, rev, aDoc, aResult);
			return aResult;
		}
开发者ID:willemda,项目名称:FoireMuses,代码行数:8,代码来源:SourceController.cs


示例20: LocationTreeNode

 public LocationTreeNode( LocationTreeFolder parent, ISource source, string name, int image, int selectedImage )
 {
     m_Parent = parent;
     m_Source = source;
     m_Name = name;
     m_Image = image;
     m_SelectedImage = selectedImage;
 }
开发者ID:johann-gambolputty,项目名称:robotbastards,代码行数:8,代码来源:LocationTreeNode.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ISourceInformationProvider类代码示例发布时间:2022-05-24
下一篇:
C# ISound类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap