本文整理汇总了C#中Org类的典型用法代码示例。如果您正苦于以下问题:C# Org类的具体用法?C# Org怎么用?C# Org使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Org类属于命名空间,在下文中一共展示了Org类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Append
public override void Append(ref Dictionary<string, object> variables, Org.Reddragonit.Stringtemplate.Outputs.IOutputWriter writer)
{
object obj = Utility.LocateObjectInVariables(val, variables);
if (obj == null)
throw new Exception("Unable to locate a variable of the name " + val + " in order to extract the type name");
writer.Append(obj.GetType().FullName);
}
示例2: IsValid
public bool IsValid(Org.BouncyCastle.Asn1.X509.X509CertificateStructure[] certs)
{
if (OnVerifyCertificate != null)
return OnVerifyCertificate(certs);
else
return true;
}
示例3: Append
public override void Append(ref Dictionary<string,object> variables, Org.Reddragonit.Stringtemplate.Outputs.IOutputWriter writer)
{
object obj = Utility.LocateObjectInVariables(_variable, variables);
_format = (Utility.LocateObjectInVariables(_format, variables) != null ? Utility.LocateObjectInVariables(_format, variables) : _format).ToString();
if (obj != null)
writer.Append(((IFormattable)Utility.LocateObjectInVariables(_variable, variables)).ToString(_format, null));
}
示例4: GetChildren2Response
public GetChildren2Response(
System.Collections.Generic.IEnumerable<string> children
,
Org.Apache.Zookeeper.Data.Stat stat
) {
Children=children;
Stat=stat;
}
示例5: GetACLResponse
public GetACLResponse(
System.Collections.Generic.IEnumerable<Org.Apache.Zookeeper.Data.ACL> acl
,
Org.Apache.Zookeeper.Data.Stat stat
) {
Acl=acl;
Stat=stat;
}
示例6: PkcsCertificate
/// <summary>
/// Public constructor for a Pkcs certificate, takes in values to describe it's state.
/// </summary>
/// <param name="password">The value used to secure (encrypt) the private key with the certificate</param>
/// <param name="keypair">An object used for manipulating/accessing the public and private key of a certificate</param>
/// <param name="cert">An easy to manipulate version of an X509 certificate</param>
/// <param name="store">A store of Pkcs12 certificates used to store and manipulate certificat chains and key associations</param>
public PkcsCertificate(string password ,AsymmetricCipherKeyPair keypair, Org.BouncyCastle.X509.X509Certificate cert, Pkcs12Store store)
{
this.Password = password;
this.Keypair = keypair;
this.X509Certificate = cert;
this.PkcsStore = store;
// this is not the best place to do this
}
示例7: GetAttributeSet
public static Asn1Set GetAttributeSet(Org.BouncyCastle.Asn1.Cms.AttributeTable attr)
{
if (attr != null)
{
return new DerSet(attr.ToAsn1EncodableVector());
}
return null;
}
示例8: GetDataResponse
public GetDataResponse(
byte[] data
,
Org.Apache.Zookeeper.Data.Stat stat
) {
Data=data;
Stat=stat;
}
示例9: ACL
public ACL(
int perms
,
Org.Apache.Zookeeper.Data.ZKId id
) {
Perms=perms;
Id=id;
}
示例10: ToByteArray
public static byte[] ToByteArray(Org.BouncyCastle.Math.BigInteger bigint, int expectedLength)
{
byte[] data = bigint.ToByteArray ();
if (data.Length == expectedLength + 1) {
return data.Skip (1).Take (expectedLength).ToArray ();
}
return data;
}
示例11: CodelistExporter
public CodelistExporter(string code,Org.Sdmxsource.Sdmx.Api.Model.Objects.Codelist.ICodelistObject codelist)
{
_codelist = codelist;
_code = code;
_xmlDoc = null;
_dataFilename = string.Empty;
_dataView = null;
}
示例12: AddOrg
public int AddOrg(string orgCode)
{
CQGJModel.Org org = new Org();
org.OrgCode = orgCode;
cqgj.AddToOrg(org);
cqgj.SaveChanges();
return org.OrgID;
}
示例13: CanLoad
public bool CanLoad(Org.Reddragonit.Stringtemplate.Tokenizers.Token token)
{
foreach(char c in _reserved)
{
if (token.Content.Contains(c.ToString()))
return false;
}
return true;
}
示例14: Serialize
public static void Serialize(string fileName, Org.Apache.REEF.Tang.Implementations.InjectionPlan.InjectionPlan ip)
{
Org.Apache.REEF.Tang.Protobuf.InjectionPlan plan = Serialize(ip);
using (var file = File.Create(fileName))
{
Serializer.Serialize<Org.Apache.REEF.Tang.Protobuf.InjectionPlan>(file, plan);
}
}
示例15: ComponentObjectBaseCore
public ComponentObjectBaseCore(Org.Sdmxsource.Sdmx.Api.Model.Objects.Base.IComponent componentBean,
ICodelistObjectBase codeListBean1, IConceptObjectBase conceptSuperBean2) : base(componentBean) {
this.Icomponent = componentBean;
this.Icodelist = codeListBean1;
if (codeListBean1 == null) {
this.Icodelist = conceptSuperBean2.CoreRepresentation;
}
this.IconceptSuper = conceptSuperBean2;
}