Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace OfficeOpenXml.FormulaParsing.Excel.Functions.RefAndLookup
|
---|
7 | {
|
---|
8 | public static class LookupNavigatorFactory
|
---|
9 | {
|
---|
10 | public static LookupNavigator Create(LookupDirection direction, LookupArguments args, ParsingContext parsingContext)
|
---|
11 | {
|
---|
12 | if (args.ArgumentDataType == LookupArguments.LookupArgumentDataType.ExcelRange)
|
---|
13 | {
|
---|
14 | return new ExcelLookupNavigator(direction, args, parsingContext);
|
---|
15 | }
|
---|
16 | else if (args.ArgumentDataType == LookupArguments.LookupArgumentDataType.DataArray)
|
---|
17 | {
|
---|
18 | return new ArrayLookupNavigator(direction, args, parsingContext);
|
---|
19 | }
|
---|
20 | throw new NotSupportedException("Invalid argument datatype");
|
---|
21 | }
|
---|
22 | }
|
---|
23 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.