public static Exceptional<IndexKeyDefinition> CreateFromIDChainDefinitions(IEnumerable<IDChainDefinition> myIDChainDefinitions) { var indexKeyDefinition = new IndexKeyDefinition(); var retVal = new Exceptional<IndexKeyDefinition>(indexKeyDefinition); foreach (var idChainDefinition in myIDChainDefinitions) { retVal.PushIExceptional(indexKeyDefinition.AddIDChainDefinition(idChainDefinition)); } return retVal; }
public static Exceptional<IndexKeyDefinition> CreateFromIDChainDefinition(IDChainDefinition myIDChainDefinition) { var indexKeyDefinition = new IndexKeyDefinition(); var retVal = new Exceptional<IndexKeyDefinition>(indexKeyDefinition); retVal.PushIExceptional(indexKeyDefinition.AddIDChainDefinition(myIDChainDefinition)); return retVal; }