本文整理汇总了C#中ILink类的典型用法代码示例。如果您正苦于以下问题:C# ILink类的具体用法?C# ILink怎么用?C# ILink使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ILink类属于命名空间,在下文中一共展示了ILink类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AddLink
/// <summary>
/// Adds a link
/// </summary>
/// <param name="NewLink">The link</param>
public virtual void AddLink (ILink NewLink)
{
if (NewLink.SourceComponent==this)
{
for (int iNewDO = 0; iNewDO < NewLink.DataOperationsCount; iNewDO++)
{
IDataOperation newDataOperation = NewLink.GetDataOperation(iNewDO);
foreach (ILink link in _providingLinks)
{
for (int iExistingDO = 0; iExistingDO < link.DataOperationsCount; iExistingDO++)
{
IDataOperation existingDataOperation = link.GetDataOperation(iExistingDO);
if (newDataOperation == existingDataOperation)
{
Event warning = new Event(EventType.Warning);
warning.Description = "DataOperation " + newDataOperation.ID + " has already been used. " +
"It's argument values will overrule the values set previously for this operation.";
warning.Sender = this;
SendEvent(warning);
}
}
}
}
_providingLinks.Add(NewLink);
}
if (NewLink.TargetComponent==this)
{
_acceptingLinks.Add(NewLink);
}
}
开发者ID:XiBeichuan,项目名称:hydronumerics,代码行数:34,代码来源:LinkableComponent.cs
示例2: AddInput
public void AddInput(ILink link, IFuzzyNumber weight)
{
_inputs.Add(link);
_weights.Add(new Link(weight));
_weightsDeltas.Add(new Link());
_weightsLambdas.Add(_defaultWeightLambda);
}
开发者ID:Diover,项目名称:nets,代码行数:7,代码来源:FuzzyNeuron.cs
示例3: RelationshipObject
/// <summary>
/// Builds a new RelationshipObject with links and linkage
/// </summary>
public RelationshipObject(IResourceLinkage linkage, ILink selfLink, ILink relatedResourceLink, IMetadata metadata = null)
{
Linkage = linkage;
SelfLink = selfLink;
RelatedResourceLink = relatedResourceLink;
Metadata = metadata;
}
开发者ID:BradBarnich,项目名称:JSONAPI.NET,代码行数:10,代码来源:RelationshipObject.cs
示例4: Token
private Token(Token oldToken, ILink link)
: this(oldToken.Document, oldToken.FullName, oldToken.Value, oldToken.Type, oldToken.LineNumber, oldToken.IsDeclaration, oldToken.IsSearchable)
{
Link = link;
LeadingTrivia = oldToken.LeadingTrivia;
TrailingTrivia = oldToken.TrailingTrivia;
}
开发者ID:modulexcite,项目名称:SourceBrowser,代码行数:7,代码来源:Token.cs
示例5: LinkViewModel
public LinkViewModel(ILink link)
{
if (link == null)
throw new ArgumentNullException("link");
this.link = link;
}
开发者ID:bossaia,项目名称:alexandrialibrary,代码行数:7,代码来源:LinkViewModel.cs
示例6: setLink
public void setLink(ILink link)
{
if (_link == link) return;
_link = link;
dependEntity = calculateDependEntity();
}
开发者ID:NickJ1984,项目名称:alterPlanner,代码行数:8,代码来源:cLimitAgregator.cs
示例7: Contains
/// <summary>
/// Checks whether the specified link is a participant in the path.
/// </summary>
public bool Contains(ILink link)
{
foreach (ILink l in _links)
if (l.Equals(link))
return true;
return false;
}
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:11,代码来源:Path.cs
示例8: SandboxControlLink
public SandboxControlLink(ILink link, INode from, INode to, SandboxControl control, IKeyTableFactory tableFactory, IPrimFactory primFactory, IPermissions permissions)
: base(link, from, to, control, permissions)
{
_control = control;
_bufferedChanges = tableFactory.MakeKeyTable<double>();
_dialog = new Dialog(control.HostPrim, primFactory, LINK_BUTTONS);
_dialog.ResponseReceived += DialogPressed;
}
开发者ID:JohnMcCaffery,项目名称:RoutingIsland,代码行数:8,代码来源:SandboxControlLink.cs
示例9: ApplyChanges
protected override HttpRequestMessage ApplyChanges(ILink link, HttpRequestMessage request)
{
request.Headers.Accept.Clear();
foreach (var headerValue in _AcceptHeader)
{
request.Headers.Accept.Add(headerValue);
}
return request;
}
开发者ID:hapikit,项目名称:hapikit.net,代码行数:9,代码来源:AcceptHeaderRequestBuilder.cs
示例10: RemoveLink
public void RemoveLink(ILink link)
{
if (link == null)
throw new ArgumentNullException("link");
if (!links.Contains(link))
return;
links.Remove(link);
}
开发者ID:bossaia,项目名称:alexandrialibrary,代码行数:10,代码来源:Entity.cs
示例11: AddLink
public void AddLink(ILink link)
{
if (link == null)
throw new ArgumentNullException("link");
if (links.Contains(link))
return;
links.Add(link);
}
开发者ID:bossaia,项目名称:alexandrialibrary,代码行数:10,代码来源:Entity.cs
示例12: ResourceObject
/// <summary>
/// Creates a ResourceObject
/// </summary>
public ResourceObject(string type, string id, IDictionary<string, JToken> attributes = null,
IDictionary<string, IRelationshipObject> relationships = null, ILink selfLink = null, IMetadata metadata = null)
{
Type = type;
Id = id;
Attributes = attributes ?? new Dictionary<string, JToken>();
Relationships = relationships ?? new Dictionary<string, IRelationshipObject>();
SelfLink = selfLink;
Metadata = metadata;
}
开发者ID:BradBarnich,项目名称:JSONAPI.NET,代码行数:13,代码来源:ResourceObject.cs
示例13: TorshifySongPlayerTest
public TorshifySongPlayerTest()
{
_session = Substitute.For<ISession>();
_link = Substitute.For<ILink<ITrackAndOffset>>();
var linkFactory = Substitute.For<ILinkFactory>();
linkFactory.GetLink(Arg.Any<string>()).Returns(_link);
_songPlayer = new TorshifySongPlayer(_session, linkFactory);
}
开发者ID:torshy,项目名称:TRock.Music,代码行数:10,代码来源:TorshifySongPlayerTest.cs
示例14: ReceiverStmContext
public ReceiverStmContext(ILink link, IChecksum cheksum, ISequenceGenerator sequenceGenerator,
int maxMessageDataSize)
{
_message = new Message(maxMessageDataSize);
_reply = new Message(0);
_link = link;
_sequence = sequenceGenerator;
_checksum = cheksum;
SetState(new MissingSync());
}
开发者ID:KasperSK,项目名称:I4IKN,代码行数:10,代码来源:ReceiverStmContext.cs
示例15: AddLink
public void AddLink(ILink link)
{
var myLink = link as Link;
if (myLink != null)
{
if (myLink.Source != null)
myLink.Source.ChildrenCount++;
this.mindmapLinks.Add(myLink);
}
}
开发者ID:netintellect,项目名称:PluralsightSpaJumpStartFinal,代码行数:10,代码来源:ObservableGraphSource.cs
示例16: ConvertToLinkDto
private LinkDto ConvertToLinkDto(ILink link)
{
return new LinkDto
{
LinkID = link.LinkId,
Enabled = link.Enabled,
LinkUri = link.LinkUri,
LinkName = link.LinkName,
LinkTitle = link.LinkTitle
};
}
开发者ID:coodream,项目名称:cms,代码行数:11,代码来源:ContentService.cs
示例17: SerializeLink
public void SerializeLink(ILink link, SerializationInfo info)
{
var myLink = link as Link;
if (myLink.Source != null)
info["SourceEmployeeId"] = myLink.Source.GetId();
if (myLink.Target != null)
info["TargetEmployeeId"] = myLink.Target.GetId();
info["IsVisible"] = myLink.IsVisible;
info["Text"] = myLink.Text;
info["MainColor"] = myLink.MainColor;
}
开发者ID:netintellect,项目名称:PluralsightSpaJumpStartFinal,代码行数:11,代码来源:ObservableGraphSource.Serialization.cs
示例18: Build
public HttpRequestMessage Build(ILink link, HttpRequestMessage request)
{
request = ApplyChanges(link, request);
if (NextBuilder != null)
{
request = NextBuilder.Build(link,request);
}
return request;
}
开发者ID:hapikit,项目名称:hapikit.net,代码行数:11,代码来源:DelegatingRequestBuilder.cs
示例19: InitLink
protected override void InitLink( String input, ILink link )
{
try {
var match = Regex.Match( input, RegExp );
var address = match.Groups[0].Value;
var db_name = match.Groups[1].Value;
var dc_name = match.Groups[2].Value;
link.Init( address, db_name, dc_name, null );
} catch ( Exception ex ) {
Errors.Messages.DisplayError( "DC link parsing: "+ex.Message );
}
}
开发者ID:devgopher,项目名称:DataDwarf,代码行数:12,代码来源:DataContainerLinkParser.cs
示例20: RemoveLink
public bool RemoveLink(ILink link)
{
var myLink = link as Link;
bool result = false;
if (myLink != null)
{
if (myLink.Source != null)
myLink.Source.ChildrenCount--;
result = this.mindmapLinks.Remove(myLink);
}
return result;
}
开发者ID:netintellect,项目名称:PluralsightSpaJumpStartFinal,代码行数:12,代码来源:ObservableGraphSource.cs
注:本文中的ILink类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论